File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 21
21
PHP_VERSION : " 8.2"
22
22
23
23
jobs :
24
+ skip :
25
+ name : Check whether to ignore this tag
26
+ runs-on : ubuntu-20.04
27
+
28
+ outputs :
29
+ skip : ${{ steps.exists.outputs.exists == 'true' }}
30
+
31
+ steps :
32
+ - name : Check if release already exists
33
+ id : exists
34
+ env :
35
+ GH_TOKEN : ${{ github.token }}
36
+ run : |
37
+ exists=false
38
+ if [[ "${{ github.ref_type }}" == "tag" ]]; then
39
+ tag="$(echo "${{ github.ref }}" | cut -d/ -f3-)"
40
+ if gh release view "$tag" --repo "${{ github.repository }}"; then
41
+ exists=true
42
+ fi
43
+ fi
44
+ echo exists=$exists >> $GITHUB_OUTPUT
45
+
24
46
check :
47
+ needs : [skip]
48
+ if : needs.skip.outputs.skip != 'true'
25
49
name : Check release
26
50
uses : ./.github/workflows/draft-release-pr-check.yml
27
51
You can’t perform that action at this time.
0 commit comments