This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
F Juster CodeQL til å kompilere testklassene også, uten å kjøre testene #38
This file contains 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: Post slack notification on main push | |
on: push | |
jobs: | |
notify: | |
name: Notify tiltakspenger-pull-requests | |
runs-on: ubuntu-latest | |
if: ${{ github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'Merge pull request') && github.actor != 'dependabot[bot]' }} | |
steps: | |
- name: Post message | |
env: | |
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | |
run: | | |
curl -X POST --data "{\"text\": \"Push til main: $GITHUB_ACTOR på $GITHUB_REPOSITORY - $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/commit/$GITHUB_SHA - ${{ env.COMMIT_MESSAGE }}\"}" $WEBHOOK_URL |