Cleanup item data creation and parsing #39
Workflow file for this run
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
| name: Sync Release to Master | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - dev | |
| jobs: | |
| sync-release-to-master: | |
| # Checks that the push to dev was from a pull request whose head branch started with 'release-'. | |
| if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release-') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| fetch-depth: 0 | |
| - uses: actions/create-github-app-token@v2 | |
| id: app-token | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.PRIVATE_KEY }} | |
| - name: Merge fast-forward dev into master | |
| run: | | |
| git merge ${{ github.sha }} --ff-only | |
| git push | |
| - name: Connect with gh auth login | |
| run: echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token; | |
| - name: Publish release | |
| run: | | |
| VERSION=$(echo ${{ github.head_ref }} | sed 's/release-//') | |
| gh release edit v$VERSION --draft=false | |
| - name: Change back branch rule to not require up-to-date branch | |
| run: | | |
| sed -i 's/\r$//' .github/set_ruleset_strict.sh | |
| chmod +x .github/set_ruleset_strict.sh | |
| ./.github/set_ruleset_strict.sh false |