Skip to content

Commit c8dc900

Browse files
committed
fixup! Add a GitHub workflow to monitor component updates
The `environment` keyword makes GitHub Actions believe this is a deployment environment [1], but we aren't deploying anything in this workflow. Having a "deployment" workflow on a frequent schedule causes some pull requests like [2] to become filled with thousands of "dscho deployed temporarily to monitor-components" messages. This was originally intended to allow this workflow to open issues, but we can instead just specify that the workflow should run with permissions to create issues and then use the generated access token. [1] https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment [2] #3948 Signed-off-by: Matthias Aßhauer <[email protected]>
1 parent 651e1b0 commit c8dc900

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/monitor-components.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ env:
1717
jobs:
1818
job:
1919
runs-on: ubuntu-latest
20-
environment: monitor-components
20+
permissions:
21+
issues: write
2122
strategy:
2223
matrix:
2324
component:
@@ -79,7 +80,7 @@ jobs:
7980
feed: ${{matrix.component.feed}}
8081
prefix: "[New ${{matrix.component.label}} version]"
8182
labels: component-update
82-
github-token: ${{ secrets.MONITOR_COMPONENTS_PAT }}
83+
github-token: ${{ secrets.GITHUB_TOKEN }}
8384
character-limit: ${{ env.CHARACTER_LIMIT }}
8485
max-age: ${{ env.MAX_AGE }}
8586
aggregate: ${{matrix.component.aggregate}}

0 commit comments

Comments
 (0)