Default to sending emails for patches where you are the author #208
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: Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - prod | |
| tags: | |
| - 'v*' | |
| jobs: | |
| deployment: | |
| runs-on: ubuntu-latest | |
| environment: ${{ startsWith(github.ref, 'refs/tags/') && 'prod' || github.ref_name }} | |
| steps: | |
| - name: Trigger deploy | |
| run: | | |
| curl --fail-with-body --silent --show-error -X POST ${{ secrets.HOOKURL }} \ | |
| -H "X-Key: ${{ secrets.HOOKSECRET }}" \ | |
| -H "Content-Type: application/x-www-form-urlencoded" \ | |
| -d "commit=${{ github.sha }}" |