Stories fixes and mailersend #195
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: Delete branch after merge | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| jobs: | |
| delete_branch: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.merged == true && github.event.pull_request.head.ref != 'master' && github.event.pull_request.head.ref != 'main' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
| - name: Delete merged branch | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git push origin --delete ${GITHUB_HEAD_REF} |