From a0d5ac531ba2895a8db8800298f8dbf0ae707a86 Mon Sep 17 00:00:00 2001 From: Robert Dyer Date: Thu, 12 Dec 2024 23:26:28 -0600 Subject: [PATCH] add workflow to track Actual releases --- .github/workflows/actual-release.yml | 25 +++++++++++++++++++++++++ actual-latest.txt | 0 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/actual-release.yml create mode 100644 actual-latest.txt diff --git a/.github/workflows/actual-release.yml b/.github/workflows/actual-release.yml new file mode 100644 index 0000000..52a363b --- /dev/null +++ b/.github/workflows/actual-release.yml @@ -0,0 +1,25 @@ +name: Get latest Actual release +on: + schedule: + - cron: '0 17 * * *' +jobs: + get-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.REPO_SCOPED_TOKEN }} + - name: Fetch release version + run: | + curl -sL https://api.github.com/repos/actualbudget/actual/releases/latest | \ + jq -r ".tag_name" > actual-latest.txt + - name: Check for modified files + id: git-check + run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") + - name: Commit latest release version + if: steps.git-check.outputs.modified == 'true' + run: | + git config --global user.name 'Robert Dyer' + git config --global user.email 'rdyer@unl.edu' + git commit -am "New Actual release version" + git push diff --git a/actual-latest.txt b/actual-latest.txt new file mode 100644 index 0000000..e69de29