-
-
Notifications
You must be signed in to change notification settings - Fork 517
51 lines (47 loc) · 1.85 KB
/
prepare.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Prepare release
on:
push:
branches:
- 'release/[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- 'release/v2'
types: [ labeled ]
jobs:
check-commit:
if: (github.event_name == 'push' || (github.event_name == 'pull_request' && (github.event.label.name == 'GA' || github.event.label.name == 'RC') && startsWith(github.head_ref, 'release/2'))) && github.actor != 'd6e-automaton'
runs-on: ubuntu-latest
outputs:
is_prepare_release: ${{ steps.check.outputs.is_prepare_release }}
telepresence_version: ${{ steps.check.outputs.telepresence_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check commit
id: check
uses: datawire/telepresence-internal-actions/check-commit@main
prepare-release:
runs-on: ubuntu-latest
needs: check-commit
steps:
- name: Prepare release
uses: datawire/telepresence-internal-actions/execute-release-commands@main
with:
gh_auto_release_token: ${{ secrets.GH_LOCAL_TOKEN }}
gh_auto_release_email: ${{ secrets.GH_AUTO_RELEASE_EMAIL }}
gh_auto_release_user: ${{ secrets.GH_AUTO_RELEASE_USER }}
telepresence_version: ${{ needs.check-commit.outputs.telepresence_version }}
repository: ${{ github.repository }}
pre_push_branch_commands: "make prepare-release"
post_push_branch_commands: "make push-tags"
slack-notification:
needs: [check-commit, prepare-release]
runs-on: ubuntu-latest
if: (needs.check-commit.result == 'failure' || needs.prepare-release.result == 'failure')
steps:
- name: Notify Developers about Workflow Error
id: slack
uses: datawire/telepresence-internal-actions/slack-notification-workflow-error@main
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}