Merge pull request #147 from novem-code/dependabot/github_actions/act… #71
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: Discord Push Notification | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| notify_push: | |
| if: github.repository_owner == 'novem-code' && github.ref == 'refs/heads/main' && github.event_name == 'push' && !startsWith(github.event.head_commit.message, 'Merge pull request') | |
| uses: novem-code/github-actions/.github/workflows/discord_push.yml@v4 | |
| with: | |
| branch_name: 'main' | |
| commit_message: ${{ github.event.head_commit.message }} | |
| commit_url: ${{ github.event.head_commit.url }} | |
| repo_full_name: ${{ github.repository }} | |
| secrets: | |
| discord_webhook: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| dummy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Make sure the action is always successful | |
| run: echo happy |