Skip to content

Commit

Permalink
Add autorelease action
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-thm committed Jun 17, 2024
1 parent 865ffff commit 2f4e912
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/automation-autorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: autorelease
on:
workflow_dispatch: {}
schedule:
# check at 11am every day
- cron: "0 11 * * *"
jobs:
autorelease:
name: autorelease
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
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

0 comments on commit 2f4e912

Please sign in to comment.