Bladeren bron

add workflow to trigger transpilation to upgradeable contracts

(cherry picked from commit 049ff9a3c7543c88426a072846b70728a74effd4)
Francisco Giordano 4 jaren geleden
bovenliggende
commit
4a6d82acb9
1 gewijzigde bestanden met toevoegingen van 23 en 0 verwijderingen
  1. 23 0
      .github/workflows/upgradeable.yml

+ 23 - 0
.github/workflows/upgradeable.yml

@@ -0,0 +1,23 @@
+name: Upgradeable Trigger
+
+on:
+  push:
+    branches:
+      - master
+      - release-v*
+
+jobs:
+  trigger:
+    runs-on: ubuntu-latest
+    steps:
+      - id: app
+        uses: getsentry/action-github-app-token@v1
+        with:
+          app_id: ${{ secrets.UPGRADEABLE_APP_ID }}
+          private_key: ${{ secrets.UPGRADEABLE_APP_PK }}
+      - run: |
+          curl -X POST \
+            https://api.github.com/repos/OpenZeppelin/openzeppelin-contracts-upgradeable/dispatches \
+            -H 'Accept: application/vnd.github.v3+json' \
+            -H 'Authorization: token ${{ steps.app.outputs.token }}' \
+            -d '{ "event_type": "Update", "client_payload": { "ref": "${{ github.ref }}" } }'