From c02ecbdf7b6badde450937ed0068fae36020ef23 Mon Sep 17 00:00:00 2001 From: garethgeorge Date: Sun, 17 Nov 2024 22:52:47 -0800 Subject: [PATCH] chore: github actions workflow to automate restic version bumps --- .github/workflows/update-restic.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/update-restic.yml diff --git a/.github/workflows/update-restic.yml b/.github/workflows/update-restic.yml new file mode 100644 index 000000000..b5b7f08c5 --- /dev/null +++ b/.github/workflows/update-restic.yml @@ -0,0 +1,34 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Update Restic + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + update-restic-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Check for updates + run: | + ./scripts/update-restic-version.sh + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: update restic version" + title: "chore: update restic version" + body: Beep boop. Bot generated PR to update backrest to the latest restic version. + assignees: garethgeorge + branch: "update-restic-version" + base: "main"