Skip to content
Merged
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
40 changes: 15 additions & 25 deletions .github/workflows/trunk-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
name: Trunk Upgrade

on:
workflow_call:
secrets:
MP_BOT_APP_ID:
required: true
MP_BOT_APP_PRIVATE_KEY:
required: true
MASTERPOINT_TEAM_PAT:
required: true
schedule:
# On the first day of every month @ 8am
- cron: 0 8 1 * *
workflow_dispatch: {}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
trunk-upgrade:
name: trunk upgrade
runs-on: ubuntu-latest
uses: masterpointio/actions/.github/workflows/trunk-upgrade.yaml@7dad35e85d864ca5dda0971dfd3c940cc67ed380 #v0.3.0
secrets:
MP_BOT_APP_ID: ${{ secrets.MP_BOT_APP_ID }}
MP_BOT_APP_PRIVATE_KEY: ${{ secrets.MP_BOT_APP_PRIVATE_KEY }}
MASTERPOINT_TEAM_PAT: ${{ secrets.MASTERPOINT_TEAM_PAT }}
permissions:
contents: write # needed by github-action-trunk-upgrade to write repository contents
pull-requests: write # needed by github-action-trunk-upgrade to write pull requests
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run Trunk Upgrade
uses: masterpointio/github-action-trunk-upgrade@a79fd65d524d92031fe167daee411d2f25d4a999 # v0.1.0
with:
app-id: ${{ secrets.MP_BOT_APP_ID }}
app-private-key: ${{ secrets.MP_BOT_APP_PRIVATE_KEY }}
github-token: ${{ secrets.MASTERPOINT_TEAM_PAT }}
reviewers: "@masterpointio/masterpoint-open-source"
contents: write # needed by github-action-trunk-upgrade
pull-requests: write # needed by github-action-trunk-upgrade
Loading