Commit 271f90da
271f90da1c19Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 2 files ยท ~2 modified
Description
feat: trigger notify workflow on release
Details
- Commit
- 271f90da1c19
- Parent
- 0387d5ca1ecb
.github/workflows/goreleaser.ymlmodifiedView file
@@ -9,15 +9,12 @@
99
push:1010
tags: ["v*"]1111
12-
permissions:13-
contents: write14-
packages: write15-
issues: write16-
1712
jobs:1813
tagger:1914
runs-on: ubuntu-latest2015
if: github.event_name == 'pull_request'16+
permissions:17+
contents: write2118
steps:2219
- name: Create tag2320
id: tag@@ -68,6 +65,9 @@
6865
goreleaser:6966
runs-on: ubuntu-latest7067
if: always()68+
permissions:69+
contents: read70+
packages: write7171
needs:7272
- get-tag7373
steps:@@ -102,12 +102,32 @@
102102
${{ runner.os }}-go-103103
104104
- name: Run GoReleaser105-
uses: goreleaser/goreleaser-action@v2105+
uses: goreleaser/goreleaser-action@v3106106
with:107107
version: latest108108
args: release --rm-dist109109
env:110110
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}111111
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.CR_PAT }}112-
# IDK113-
ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH: go1.18112+
113+
trigger-notify:114+
runs-on: ubuntu-latest115+
if: always()116+
permissions:117+
actions: write118+
needs:119+
- get-tag120+
steps:121+
- name: Trigger helmwave/docs workflow122+
uses: actions/github-script@v6123+
with:124+
github-token: ${{ secrets.PAT }}125+
script: |126+
await github.rest.actions.createWorkflowDispatch({127+
owner: context.repo.owner,128+
repo: context.repo.repo,129+
workflow_id: "notify.yml",130+
ref: process.env.GITHUB_TAG,131+
})132+
env:133+
GITHUB_TAG: ${{ needs.get-tag.outputs.tag }}.vscode/settings.jsonmodifiedView file
Loading diffโฆ