upgradeable.yml 916 B

123456789101112131415161718192021222324252627282930
  1. name: transpile upgradeable
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - release-v*
  7. jobs:
  8. transpile:
  9. environment: push-upgradeable
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. with:
  14. repository: OpenZeppelin/openzeppelin-contracts-upgradeable
  15. fetch-depth: 0
  16. token: ${{ secrets.GH_TOKEN_UPGRADEABLE }}
  17. - name: Fetch current non-upgradeable branch
  18. run: |
  19. git fetch "https://github.com/${{ github.repository }}.git" "$REF"
  20. git checkout FETCH_HEAD
  21. env:
  22. REF: ${{ github.ref }}
  23. - name: Set up environment
  24. uses: ./.github/actions/setup
  25. - run: bash scripts/git-user-config.sh
  26. - name: Transpile to upgradeable
  27. run: bash scripts/upgradeable/transpile-onto.sh ${{ github.ref_name }} origin/${{ github.ref_name }}
  28. - run: git push origin ${{ github.ref_name }}