diff --git a/.github/workflows/notify-on-main-pr.yml b/.github/workflows/notify-on-main-pr.yml deleted file mode 100644 index 2727e2a..0000000 --- a/.github/workflows/notify-on-main-pr.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Post slack notification on pull request - -on: - pull_request: - types: - - opened - - reopened - branches: - - main - -jobs: - notify: - name: Notify tiltakspenger-pull-requests - runs-on: ubuntu-latest - if: github.actor != 'dependabot[bot]' - steps: - - name: Post message - env: - WEBHOOK_URL: ${{ secrets.SLACK_PR_WEBHOOK_URL }} - PR_TITLE: ${{ github.event.pull_request.title }} - PR_URL: ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.pull_request.number }} - run: | - curl -X POST --data "{\"text\": \"Pull request åpnet: $GITHUB_ACTOR på $GITHUB_REPOSITORY - $PR_URL - $PR_TITLE\"}" $WEBHOOK_URL \ No newline at end of file diff --git a/.github/workflows/notify-on-main-push.yml b/.github/workflows/notify-on-main-push.yml deleted file mode 100644 index 711bb1d..0000000 --- a/.github/workflows/notify-on-main-push.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Post slack notification on main push - -on: - push: - branches: - - main - -jobs: - notify: - name: Notify tiltakspenger-pull-requests - runs-on: ubuntu-latest - if: github.actor != 'dependabot[bot]' - steps: - - name: Post message - env: - WEBHOOK_URL: ${{ secrets.SLACK_PR_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 \ No newline at end of file