Skip to content

Commit 2ce05e3

Browse files
committed
fix(ci): manually dispatch
1 parent a48c026 commit 2ce05e3

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,21 @@ jobs:
114114
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
115115
git tag -a "${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}" -m "Release ${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}"
116116
git push origin "${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}"
117+
118+
-
119+
name: Trigger GoReleaser
120+
run: |
121+
curl -X POST \
122+
-H "Accept: application/vnd.github+json" \
123+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
124+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/goreleaser.yml/dispatches \
125+
-d '{"ref":"${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}"}'
126+
127+
-
128+
name: Trigger Docker Build
129+
run: |
130+
curl -X POST \
131+
-H "Accept: application/vnd.github+json" \
132+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
133+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/docker.yml/dispatches \
134+
-d '{"ref":"${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}"}'

.github/workflows/docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: docker
22
on:
3-
release:
4-
types: [published]
3+
workflow_dispatch: {}
4+
push:
5+
tags:
6+
- 'v*'
57
jobs:
68
multi:
79
runs-on: ubuntu-latest

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: goreleaser
22
on:
3+
workflow_dispatch: {}
34
push:
45
tags:
56
- 'v*'

0 commit comments

Comments
 (0)