File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,22 @@ jobs:
32
32
name : patternlab
33
33
path : out
34
34
35
+ - name : ↔ Extract branch name
36
+ uses : ./.github/actions/extract-branch
37
+ id : extract_branch
38
+
35
39
- name : ↔ Extract branch/tag name
36
40
shell : bash
37
41
env :
38
42
RELEASE : ${{ inputs.release }}
39
43
PRE_RELEASE : ${{ inputs.preRelease }}
44
+ BRANCH_NAME : ${{ steps.extract_branch.outputs.branch-name }}
40
45
run : |
41
46
if [[ $RELEASE == "true" || $PRE_RELEASE == "true" ]]
42
47
then
43
48
echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/tags/})"
44
49
else
45
- echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/heads/} )"
50
+ echo "##[set-output name=name;]$(echo $BRANCH_NAME )"
46
51
fi
47
52
id : extract
48
53
Original file line number Diff line number Diff line change 12
12
uses : ./.github/workflows/00-init.yml
13
13
14
14
scan-secrets :
15
- if : github.owner == 'db-ui'
15
+ if : github.event.pull_request == null || github.event.pull_request.head.repo. owner.login == 'db-ui'
16
16
uses : ./.github/workflows/00-scan-secrets.yml
17
17
18
18
lint :
36
36
37
37
deploy :
38
38
uses : ./.github/workflows/02-deploy-gh-pages.yml
39
- if : ${{ github.actor != 'dependabot[bot]' && github.owner == 'db-ui' }}
39
+ if : ${{ github.actor != 'dependabot[bot]' && github.event.pull_request == null || github.event.pull_request.head.repo. owner.login == 'db-ui' }}
40
40
needs : [lint, test, build]
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ permissions:
11
11
12
12
jobs :
13
13
add-url-comment :
14
- if : github.owner == 'db-ui'
14
+ if : github.event.pull_request.head.repo. owner.login == 'db-ui'
15
15
uses : ./.github/workflows/99-add-url-comment.yml
Original file line number Diff line number Diff line change 22
22
uses : ./.github/workflows/99-dependency-review.yml
23
23
24
24
labeler :
25
- if : github.owner == 'db-ui'
25
+ if : github.event.pull_request.head.repo. owner.login == 'db-ui'
26
26
uses : ./.github/workflows/99-labeler.yml
You can’t perform that action at this time.
0 commit comments