From 4a6d82acb9a460609f3d57d188c1483f1f38286e Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Tue, 10 Aug 2021 23:46:44 -0300 Subject: [PATCH] add workflow to trigger transpilation to upgradeable contracts (cherry picked from commit 049ff9a3c7543c88426a072846b70728a74effd4) --- .github/workflows/upgradeable.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/upgradeable.yml diff --git a/.github/workflows/upgradeable.yml b/.github/workflows/upgradeable.yml new file mode 100644 index 00000000000..a94f78c9859 --- /dev/null +++ b/.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 }}" } }'