Skip to content

Commit 2f439fb

Browse files
ci: use new runner app for removing changesets in a separate PR
1 parent d9198dc commit 2f439fb

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/upload-changesets.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@ jobs:
3030
cleanup-changesets:
3131
runs-on: ubuntu-latest
3232
needs: upload-changesets
33-
environment: production
3433
steps:
3534
- name: 'Get token for the GitHub App'
36-
if: ${{ vars.APP_ID != '' }}
35+
if: ${{ vars.RUNNER_APP_ID != '' }}
3736
uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c
3837
id: app-token
3938
with:
40-
app-id: ${{ vars.APP_ID }}
41-
private-key: ${{ secrets.APP_PRIVATE_KEY }}
39+
app-id: ${{ vars.RUNNER_APP_ID }}
40+
private-key: ${{ secrets.RUNNER_APP_PRIVATE_KEY }}
4241

4342
- uses: actions/checkout@v4
4443
with:
@@ -53,4 +52,12 @@ jobs:
5352
with:
5453
add: '.'
5554
github_token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
56-
message: 'chore(skip-ci): remove changesets zip files'
55+
message: 'chore: remove changesets zip files'
56+
push: 'false'
57+
58+
- name: Create Pull Request
59+
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c
60+
with:
61+
title: 'Remove changesets zip after release ${{ github.event.release.tag_name }}'
62+
token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
63+
branch: chore/remove-changesets-zip-${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)