From 66d3d8958318cf5aeaefff2d2bfcb6730bbda546 Mon Sep 17 00:00:00 2001 From: Ludovic Levalleux Date: Wed, 20 Nov 2024 14:10:06 +0000 Subject: [PATCH] ci: try to fix git push changes (#850) --- .github/workflows/deploy-staging-subgraph.yaml | 2 ++ .github/workflows/deploy-testing-subgraph.yaml | 3 ++- .github/workflows/publish-alpha.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-staging-subgraph.yaml b/.github/workflows/deploy-staging-subgraph.yaml index 2fc31e11e..088b18d7d 100644 --- a/.github/workflows/deploy-staging-subgraph.yaml +++ b/.github/workflows/deploy-staging-subgraph.yaml @@ -12,6 +12,8 @@ jobs: name: Deploy subgraph steps: - uses: actions/checkout@v3 + with: + token: ${{ secrets.BSNORG_ACTIONS_SECRET }} - uses: actions/setup-node@v3 with: node-version: "20" diff --git a/.github/workflows/deploy-testing-subgraph.yaml b/.github/workflows/deploy-testing-subgraph.yaml index 4fe2b2856..4b79af1ee 100644 --- a/.github/workflows/deploy-testing-subgraph.yaml +++ b/.github/workflows/deploy-testing-subgraph.yaml @@ -49,8 +49,9 @@ jobs: ORMI_0x_GRAPH_API_KEY: ${{ secrets.ORMI_0x_GRAPH_API_KEY_TESTING }} - name: Commit & Push env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | git add . git commit -m "chore: deploy testing subgraphs [skip ci]" - git push + git push origin HEAD diff --git a/.github/workflows/publish-alpha.yaml b/.github/workflows/publish-alpha.yaml index 599b49cda..17a3d712b 100644 --- a/.github/workflows/publish-alpha.yaml +++ b/.github/workflows/publish-alpha.yaml @@ -83,4 +83,4 @@ jobs: if: needs.publish.outputs.SUBGRAPH_CHANGES == 'true' secrets: ORMI_0x_GRAPH_API_KEY_TESTING: ${{ secrets.ORMI_0x_GRAPH_API_KEY_TESTING }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.BSNORG_ACTIONS_SECRET }}