Skip to content

Commit

Permalink
💥 require token for creating pull requests in auto update (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgholzer authored Jun 19, 2024
1 parent c79c524 commit 61f5b12
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/reusable-mqt-core-update.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: ⬆️ Update MQT Core
on:
workflow_call:
secrets:
token:
description: |
Personal Access Token (PAT) with `repo` scope.
You can pass the `github.token` provided by GitHub Actions,
which does not have these permissions and, hence, cannot
trigger workflows in the PRs created by this workflow.
As a workaround, such a PR can be closed and re-opened
by a maintainer to trigger the PR workflows.
required: true

jobs:
update-mqt-core:
Expand Down Expand Up @@ -85,7 +95,7 @@ jobs:
if: steps.compare-versions.outputs.update == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ github.token }}
token: ${{ secrets.token }}
commit-message: "⬆️ Update `cda-tum/mqt-core`"
title: "⬆️ Update `cda-tum/mqt-core`"
body: |
Expand Down

0 comments on commit 61f5b12

Please sign in to comment.