File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,19 @@ jobs:
35
35
outputs :
36
36
result : ${{ steps.determination.outputs.result }}
37
37
steps :
38
+ - name : Checkout repository
39
+ uses : actions/checkout@v3
40
+ with :
41
+ fetch-depth : 0
42
+
38
43
- name : Determine if the rest of the workflow should run
39
44
id : determination
40
45
run : |
41
- RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x "
46
+ TAG="$(git tag --points-at=HEAD 2> /dev/null | head -n1) "
42
47
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
43
48
if [[ \
44
- "${{ github.event_name }}" != "create" || \
45
- "${{ github.ref }} " =~ $RELEASE_BRANCH_REGEX \
49
+ "${{ github.event_name }}" != "create" && \
50
+ "$TAG " == "" \
46
51
]]; then
47
52
# Run the other jobs.
48
53
RESULT="true"
You can’t perform that action at this time.
0 commit comments