From 6752a473380e36e0fdc548c18cb93134e8047e2d Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Tue, 2 Apr 2024 13:19:45 +0200 Subject: [PATCH 1/2] Devtools - Trigger Error Code PR after npm Release --- .github/workflows/devtools-errorcodes.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/devtools-errorcodes.yml diff --git a/.github/workflows/devtools-errorcodes.yml b/.github/workflows/devtools-errorcodes.yml new file mode 100644 index 00000000000..820444c2541 --- /dev/null +++ b/.github/workflows/devtools-errorcodes.yml @@ -0,0 +1,22 @@ +name: Devtools - Trigger Error Code PR after npm Release +on: + workflow_dispatch: # for testing + workflow_run: + workflows: ["Prerelease", "Release"] + types: + - completed +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/create-github-app-token@v1 + id: github-actions-bot-app-token + with: + app-id: 819772 + private-key: ${{ secrets.APOLLO_GITHUB_ACTIONS_BOT_PRIVATE_KEY }} + repositories: apollo-client-devtools + - uses: benc-uk/workflow-dispatch@v1 + with: + workflow: update-errorcodes.yml + repo: apollographql/apollo-client-devtools + token: ${{ steps.github-actions-bot-app-token.outputs.token }} From ac3ac8f44cde23ed23038e908ab5dc6a2f844055 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Tue, 2 Apr 2024 13:23:07 +0200 Subject: [PATCH 2/2] rename job --- .github/workflows/devtools-errorcodes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/devtools-errorcodes.yml b/.github/workflows/devtools-errorcodes.yml index 820444c2541..747b5cc236f 100644 --- a/.github/workflows/devtools-errorcodes.yml +++ b/.github/workflows/devtools-errorcodes.yml @@ -6,7 +6,7 @@ on: types: - completed jobs: - publish: + dispatch: runs-on: ubuntu-latest steps: - uses: actions/create-github-app-token@v1