forked from aws-amplify/amplify-js
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.09 KB
/
push-preid-release.yml
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
name: Push - release for feature preid
concurrency:
# group name unique for push to push-preid-release
group: push-release-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- storage-browser/integrity
jobs:
e2e:
secrets: inherit
uses: ./.github/workflows/callable-release-verification.yml
parse-preid:
name: Parse preid from branch
runs-on: ubuntu-latest
env:
BRANCH: ${{ github.ref_name }}
steps:
- id: output_preid
run: echo "preid=$(echo $BRANCH | tr -cd '[:alnum:]_\-/.' | cut -d \/ -f 2)" >> $GITHUB_OUTPUT
outputs:
preid: ${{ steps.output_preid.outputs.preid }}
preid-release:
needs:
- e2e
- parse-preid
secrets: inherit
uses: ./.github/workflows/callable-npm-publish-preid.yml
# The preid should be detected from the branch name recommending feat/{PREID}/whatever as branch naming pattern
# if your branch doesn't follow this pattern, you can override it here for your branch.
with:
preid: storage-browser-integrity
# preid: ${{ needs.parse-preid.outputs.preid }}