Skip to content

Commit

Permalink
Update update-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sethjray committed Oct 24, 2023
1 parent b74ff76 commit a4bdd32
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ on:

jobs:
fetch:
name: Fetch Version Info
name: Fetch Latest Release
runs-on: ubuntu-latest
outputs:
stable_ver: ${{ steps.check_ver.outputs.stable_ver }}
tag_name: ${{ steps.fetch-latest-release.outputs.tag_name }}
steps:
- uses: mogeko/latest-version@93e47a995b0d6f6ecad8103a20f8ae177337a85a
id: check_ver
- uses: CityOfLosAngeles/fetch-latest-[email protected]
id: fetch-latest-release
with:
repo: datalogic/logger
github_token: ${{ secrets.GITHUB_TOKEN }}

update-release:
name: Update Relase Version File
runs-on: ubuntu-latest
Expand All @@ -34,7 +34,7 @@ jobs:
- uses: Radioh/[email protected]
with:
filePath: "${{ github.workspace }}/version.txt"
content: '${{ needs.fetch.outputs.stable_ver }}'
content: '${{ needs.fetch.outputs.tag_name }}'

- uses: xresloader/upload-to-github-release@v1
env:
Expand All @@ -45,7 +45,6 @@ jobs:
overwrite: true

- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4.16.0
uses: stefanzweifel/git-auto-commit-action@v5.0.0
with:
branch: main
file_pattern: '*.txt'

0 comments on commit a4bdd32

Please sign in to comment.