Skip to content

Commit 09e855a

Browse files
authored
Update update-version.yml
1 parent 939072b commit 09e855a

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/update-version.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ on:
1010

1111
jobs:
1212
fetch:
13-
name: Fetch Version Info
13+
name: Fetch Latest Release
1414
runs-on: ubuntu-latest
1515
outputs:
16-
stable_ver: ${{ steps.check_ver.outputs.stable_ver }}
16+
tag_name: ${{ steps.fetch-latest-release.outputs.tag_name }}
1717
steps:
18-
- uses: mogeko/latest-version@93e47a995b0d6f6ecad8103a20f8ae177337a85a
19-
id: check_ver
18+
- uses: CityOfLosAngeles/fetch-latest-github-release@v2.0.3
19+
id: fetch-latest-release
2020
with:
21-
repo: datalogic/scan2deploy-android
22-
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
2323
update-release:
24-
name: Update Release Version File
24+
name: Update Relase Version File
2525
runs-on: ubuntu-latest
2626
needs: fetch
2727
steps:
@@ -34,7 +34,7 @@ jobs:
3434
- uses: Radioh/action-content-overwrite@v1.0
3535
with:
3636
filePath: "${{ github.workspace }}/version.txt"
37-
content: '${{ needs.fetch.outputs.stable_ver }}'
37+
content: '${{ needs.fetch.outputs.tag_name }}'
3838

3939
- uses: xresloader/upload-to-github-release@v1
4040
env:
@@ -45,7 +45,6 @@ jobs:
4545
overwrite: true
4646

4747
- name: Git Auto Commit
48-
uses: stefanzweifel/git-auto-commit-action@v4.16.0
48+
uses: stefanzweifel/git-auto-commit-action@v5.0.0
4949
with:
50-
branch: master
5150
file_pattern: '*.txt'

0 commit comments

Comments
 (0)