ci: fix verify-release.yml fetch-depth #13
Workflow file for this run
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: Verify Release | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- release | |
jobs: | |
verify-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: release | |
fetch-depth: 0 | |
# - name: Setup Go | |
# uses: actions/setup-go@v4 | |
# with: | |
# go-version: 1.21.x | |
- name: Verify release | |
run: | | |
scripts/release.sh verify | |
# git checkout release | |
# git pull | |
# - 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": "@oncall-growth-eng! There has been a failure that needs your attention. :rotating_light:\n*GitHub Workflow Failure*\ngo-sdk/verify-release\n*Workflow Run*\n https://github.com/lacework/go-sdk/actions/runs/${{ github.run_id }}" | |
# } | |
# } | |
# ] | |
# } | |
# ] | |
# } | |
# env: | |
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_GROWTH_ENG_ALERTS }} | |
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |