Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autorelease automation #12

Merged
merged 2 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/automation-autorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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
tag-only: true
1 change: 1 addition & 0 deletions .github/workflows/periodic-renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
renovate:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a bit of a bonus

steps:
- name: Get Renovate GitHub App Token
id: app-token
Expand Down