From 5a594ad2205e6908a9abaae2b41a00fd3d0dd5e2 Mon Sep 17 00:00:00 2001 From: David Antoon Date: Mon, 8 Jan 2024 23:38:18 +0200 Subject: [PATCH] fix release pipeline --- .github/workflows/onPullRequestMerged.yaml | 1 + .github/workflows/onReleaseMerged.yaml | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/onPullRequestMerged.yaml b/.github/workflows/onPullRequestMerged.yaml index 338ef97..10098fc 100644 --- a/.github/workflows/onPullRequestMerged.yaml +++ b/.github/workflows/onPullRequestMerged.yaml @@ -8,6 +8,7 @@ env: CI: true jobs: lint-build: + if: "!contains(join(github.event.pull_request.labels.*.name, ','), 'Release') && github.event.pull_request.merged == true" name: 'Lint | Build' runs-on: macos-12 steps: diff --git a/.github/workflows/onReleaseMerged.yaml b/.github/workflows/onReleaseMerged.yaml index a54325c..e2866f4 100644 --- a/.github/workflows/onReleaseMerged.yaml +++ b/.github/workflows/onReleaseMerged.yaml @@ -91,17 +91,17 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - - name: Notify Slack on deployment - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_CHANNEL: Production - SLACK_COLOR: ${{ job.status }} - SLACK_ICON: https://avatars.githubusercontent.com/u/67857107?s=40&v=4 - SLACK_MESSAGE: '${{ github.actor }} has deployed @frontegg/react-native version: ${{ steps.set_current_version.outputs.CURRENT_VERSION }} :rocket:' - SLACK_TITLE: '@frontegg/react-native version: ${{ steps.set_current_version.outputs.CURRENT_VERSION }} has been successfully published' - SLACK_USERNAME: ${{ github.actor }} - SLACK_WEBHOOK: ${{ secrets.SLACK_PRODUCTION_TOKEN }} - MSG_MINIMAL: Commit,actions url + # - name: Notify Slack on deployment + # uses: rtCamp/action-slack-notify@v2 + # env: + # SLACK_CHANNEL: Production + # SLACK_COLOR: ${{ job.status }} + # SLACK_ICON: https://avatars.githubusercontent.com/u/67857107?s=40&v=4 + # SLACK_MESSAGE: '${{ github.actor }} has deployed @frontegg/react-native version: ${{ steps.set_current_version.outputs.CURRENT_VERSION }} :rocket:' + # SLACK_TITLE: '@frontegg/react-native version: ${{ steps.set_current_version.outputs.CURRENT_VERSION }} has been successfully published' + # SLACK_USERNAME: ${{ github.actor }} + # SLACK_WEBHOOK: ${{ secrets.SLACK_PRODUCTION_TOKEN }} + # MSG_MINIMAL: Commit,actions url - uses: actions/github-script@0.8.0 with: github-token: ${{secrets.GITHUB_TOKEN}}