Skip to content

Commit

Permalink
add workflow to trigger transpilation to upgradeable contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Aug 13, 2021
1 parent 73425c2 commit 049ff9a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/upgradeable.yml
Original file line number Diff line number Diff line change
@@ -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 }}" } }'

0 comments on commit 049ff9a

Please sign in to comment.