Skip to content

Commit

Permalink
Update watch-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tfemby authored Jan 2, 2024
1 parent 3c14694 commit f2990c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/watch-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ jobs:
- uses: actions/checkout@v3
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}

- name: Fetch release version
run: |
curl -sL https://api.github.com/repos/neovide/neovide/releases/latest | \
jq -r ".tag_name" > release-version/latest.txt
- name: Check for modified files
id: git-check
run: echo "modified=$(\
[ -z "`git status --porcelain`" ] && echo "false" || echo "true")" \
>> $GITHUB_OUTPUT
run: echo "modified=$(\[ -z "$(git status --porcelain)" \] && echo "false" || echo "true")" >> $GITHUB_ENV

- name: Commit latest release version
if: ${{ env.modified == 'true' }}
run: |
Expand Down

0 comments on commit f2990c5

Please sign in to comment.