From 1c8247903af0ef8afdf66f6c1cd830bd4087edb9 Mon Sep 17 00:00:00 2001 From: Mark Elliot <123787712+mark-thm@users.noreply.github.com> Date: Wed, 17 Apr 2024 20:32:53 -0400 Subject: [PATCH 1/2] Add autorelease automation --- .github/workflows/automation-autorelease.yml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/automation-autorelease.yml diff --git a/.github/workflows/automation-autorelease.yml b/.github/workflows/automation-autorelease.yml new file mode 100644 index 0000000..24081f5 --- /dev/null +++ b/.github/workflows/automation-autorelease.yml @@ -0,0 +1,22 @@ +name: autorelease +on: + schedule: + # check at 11am every day + - cron: "0 11 * * *" +jobs: + autorelease: + name: autorelease + runs-on: ubuntu-latest + steps: + - name: Get Token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.THM_AUTOMATION_APP_ID }} + private-key: ${{ secrets.THM_AUTOMATION_PRIVATE_KEY }} + - name: autorelease + uses: markelliot/autorelease@v2 + with: + github-token: ${{ steps.app-token.outputs.token }} + max-days: 7 + tag-only: true From 53036aebf6ba416bec48f38617b1963c78011518 Mon Sep 17 00:00:00 2001 From: Mark Elliot <123787712+mark-thm@users.noreply.github.com> Date: Wed, 17 Apr 2024 20:36:02 -0400 Subject: [PATCH 2/2] more --- .github/workflows/automation-autorelease.yml | 2 ++ .github/workflows/periodic-renovate.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/automation-autorelease.yml b/.github/workflows/automation-autorelease.yml index 24081f5..f255e7c 100644 --- a/.github/workflows/automation-autorelease.yml +++ b/.github/workflows/automation-autorelease.yml @@ -1,5 +1,6 @@ name: autorelease on: + workflow_dispatch: {} schedule: # check at 11am every day - cron: "0 11 * * *" @@ -7,6 +8,7 @@ jobs: autorelease: name: autorelease runs-on: ubuntu-latest + if: ${{ github.ref == 'refs/heads/main' }} steps: - name: Get Token id: app-token diff --git a/.github/workflows/periodic-renovate.yml b/.github/workflows/periodic-renovate.yml index f6de065..949feb6 100644 --- a/.github/workflows/periodic-renovate.yml +++ b/.github/workflows/periodic-renovate.yml @@ -7,6 +7,7 @@ on: jobs: renovate: runs-on: ubuntu-latest + if: ${{ github.ref == 'refs/heads/main' }} steps: - name: Get Renovate GitHub App Token id: app-token