Skip to content

Commit

Permalink
Allow GA to commit to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrofavarin committed Sep 30, 2024
1 parent 0c0aecf commit c829d1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@ name: Release Checker

on:
schedule:
- cron: '0 0 * * *' # midnights
- cron: '*/5 * * * *' # midnights

jobs:
Release-Checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}

- name: Fetch latest release version
id: fetch-release
run: |
curl -s https://api.github.com/repos/rclone/rclone/releases/latest | jq -r ".tag_name" > release-versions/latest.txt
echo ::set-output name=success::$([ "$(cat release-versions/latest.txt)" == 'null' ] && echo "false" || echo "true")
echo "success=$(test \"$(cat release-versions/latest.txt)\" != 'null' && echo true || echo false)" >> $GITHUB_OUTPUT
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
run: echo "modified=$([ -z "$(git status --porcelain)" ] && echo false || echo true)" >> >> $GITHUB_OUTPUT

- name: Commit latest release version
if: |
Expand Down
2 changes: 1 addition & 1 deletion release-versions/latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.68.1
v1.68.1

0 comments on commit c829d1b

Please sign in to comment.