Skip to content

Commit 4321cbd

Browse files
committed
fix github actions
1 parent 6ed4eb0 commit 4321cbd

2 files changed

Lines changed: 15 additions & 24 deletions

File tree

.github/workflows/build-plugin.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,12 @@ jobs:
3939
4040
- name: Create GitHub Release
4141
id: create_release
42-
uses: softprops/action-gh-release@v1
42+
uses: softprops/action-gh-release@v2
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
with:
4646
tag_name: v${{ steps.get_version.outputs.version }}
4747
name: Release v${{ steps.get_version.outputs.version }}
4848
draft: false
4949
prerelease: false
50-
51-
- name: Upload plugin artifact to release
52-
uses: softprops/action-gh-release@v1
53-
with:
54-
files: plugin/build/distributions/yamp_plugin_${{ steps.get_version.outputs.version }}.zip
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
files: plugin/build/distributions/yamp_plugin_${{ steps.get_version.outputs.version }}.zip # ← добавь сюда!

.github/workflows/pr_master.yaml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,31 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4 # ← v4
12+
1213
- name: Set up JDK 17
13-
uses: actions/setup-java@v3
14+
uses: actions/setup-java@v4 # ← v4
1415
with:
1516
java-version: '17'
1617
distribution: 'temurin'
1718

1819
- name: Validate Gradle wrapper
19-
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
20+
uses: gradle/wrapper-validation-action@v3 # ← тег v3
2021

2122
- name: Build with Gradle
22-
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
23-
24-
with:
23+
uses: gradle/gradle-build-action@v3 # ← тег v3
24+
with: # ← правильно!
2525
arguments: fatJar
2626

27-
- name : Retrieve Version
27+
- name: Retrieve Version
28+
id: yamp_version # ← id сюда!
2829
run: |
29-
echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew -q printVersionName)"
30-
id: yamp_version
31-
32-
- name: Get version
33-
run:
34-
echo "version_name=${{steps.yamp_version.outputs.VERSION_NAME}}" >> $GITHUB_ENV
30+
echo "version_name=$(${{github.workspace}}/gradlew -q printVersionName)" >> $GITHUB_OUTPUT # GITHUB_OUTPUT!
3531
36-
- run: echo ${{env.version_name}}
32+
- name: Print version
33+
run: echo ${{ steps.yamp_version.outputs.version_name }}
3734

38-
- uses: actions/upload-artifact@v3
35+
- uses: actions/upload-artifact@v4 # ← v4!
3936
with:
40-
name: yamp-${{env.version_name}}
37+
name: yamp-${{ steps.yamp_version.outputs.version_name }}
4138
path: app/build/libs

0 commit comments

Comments
 (0)