From e94d6ee4ffe97904483236ac435a2bb36bc1fca5 Mon Sep 17 00:00:00 2001 From: Pengyuan Zhao Date: Tue, 13 Feb 2024 17:50:23 -0500 Subject: [PATCH 1/3] ci: Create workflow verify-release.yml --- .github/workflows/verify-release.yml | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/verify-release.yml diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml new file mode 100644 index 000000000..544a33f23 --- /dev/null +++ b/.github/workflows/verify-release.yml @@ -0,0 +1,50 @@ +name: Verify Release + +on: + pull_request: + push: + branches: + - release + +jobs: + verify-release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} + + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: 1.21.x + + - name: Verify release + run: | + scripts/release.sh verify + + - name: Notify Slack on Failure + uses: slackapi/slack-github-action@v1.25.0 + if: failure() + with: + payload: | + { + "attachments": [ + { + "color": "#E92020", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*GitHub Workflow Failure*\ngo-sdk/verify-release\n*Workflow Run*\n https://github.com/lacework/go-sdk/actions/runs/${{ github.run_id }}\n@oncall-growth-eng! There has been a failure that needs your attention. :rotating_light:" + } + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_GROWTH_ENG_ALERTS }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK From d92dd1499ae981a4a080fdb746af7173bcdde4a6 Mon Sep 17 00:00:00 2001 From: Pengyuan Zhao Date: Tue, 13 Feb 2024 17:53:43 -0500 Subject: [PATCH 2/3] ci: add workflow_dispatch trigger --- .github/workflows/verify-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 544a33f23..73d789bff 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -1,6 +1,7 @@ name: Verify Release on: + workflow_dispatch: pull_request: push: branches: From aa3465be873949849583e6d7371b54fd56a264c2 Mon Sep 17 00:00:00 2001 From: Pengyuan Zhao Date: Thu, 15 Feb 2024 12:03:27 -0500 Subject: [PATCH 3/3] chore: remove pull_request trigger --- .github/workflows/verify-release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 73d789bff..d825b626e 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -2,7 +2,6 @@ name: Verify Release on: workflow_dispatch: - pull_request: push: branches: - release