[FIX] pre-upgrade script to preserve module states during merges #86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - "*.0-*" | |
| - "*master*" | |
| pull_request: | |
| branches: | |
| - "*.0-*" | |
| - "*master*" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'adhoc-dev' }} | |
| steps: | |
| - name: Clone adhoc-dev | |
| with: | |
| token: ${{ secrets.TOKEN }} | |
| fetch-depth: 0 | |
| uses: actions/checkout@v3 | |
| - name: Push to ingadhoc | |
| run: git push --force https://github.com/ingadhoc/${GITHUB_REPOSITORY#'adhoc-dev/'}.git HEAD | |
| - name: PR link | |
| run: echo 'Create pr by visiting https://github.com/ingadhoc/'${GITHUB_REPOSITORY#'adhoc-dev/'}'/pull/new/'${GITHUB_REF_NAME} |