forked from ipdxco/unified-github-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (21 loc) · 1.08 KB
/
tagpush.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Manual Release Nag
on:
workflow_call:
jobs:
nag:
if: startsWith(github.ref, 'refs/tags') && github.event.pusher.name != 'web3-bot'
runs-on: ubuntu-latest
name: All
steps:
- name: create an issue
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_EVENT_PUSHER_NAME: ${{ github.event.pusher.name }}
TITLE: manual release created (${GITHUB_REF#refs/tags/})
ASSIGNEE: '@$GITHUB_EVENT_PUSHER_NAME'
BODY: |
@$GITHUB_EVENT_PUSHER_NAME just pushed a release tag: ${GITHUB_REF#refs/tags/}.
Please manually verify validity (using [\`gorelease\`](https://pkg.go.dev/golang.org/x/exp/cmd/gorelease)), and update \`version.json\` to reflect the manually released version, if necessary.
In the future, please use the [automated process](https://github.com/ipdxco/unified-github-workflows/blob/master/VERSIONING.md).
run: |
gh issue create --title="$(echo "$TITLE" | envsubst)" --assignee="$(echo "$ASSIGNEE" | envsubst)" --body="$(echo "$BODY" | envsubst)" --repo="$GITHUB_REPO"