From 1f0bd581aba94034e584f8892f3e43292039c888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Br=C3=A5then=20Nomerstad?= Date: Wed, 8 Jan 2025 16:19:28 +0100 Subject: [PATCH] Fjerner varsler til arkivert PR-kanal --- .github/workflows/notify-on-main-pr.yml | 23 ----------------------- .github/workflows/notify-on-main-push.yml | 19 ------------------- 2 files changed, 42 deletions(-) delete mode 100644 .github/workflows/notify-on-main-pr.yml delete mode 100644 .github/workflows/notify-on-main-push.yml 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