File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 22
22
23
23
jobs :
24
24
push :
25
- if : " github.event.pull_request.merged == true"
25
+ if : ${{ github.event.pull_request.merged == true }} and ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-tag') }}
26
26
runs-on : ubuntu-latest
27
27
permissions :
28
28
contents : write
@@ -34,24 +34,20 @@ jobs:
34
34
with :
35
35
ref : ${{ inputs.branch_name }}
36
36
token : ${{ secrets.gh_token }}
37
- if : " contains(github.event.pull_request.labels.*.name, 'ok-to-tag')"
38
37
39
38
- name : setup python
40
39
uses : actions/setup-python@v4
41
40
with :
42
41
python-version : " 3.9"
43
- if : " contains(github.event.pull_request.labels.*.name, 'ok-to-tag')"
44
42
45
43
- name : install python libraries
46
44
run : pip3 install yq pygithub
47
45
shell : bash
48
- if : " contains(github.event.pull_request.labels.*.name, 'ok-to-tag')"
49
46
50
47
- name : extract tag name from 'galaxy.yml'
51
48
id : read-tag
52
49
run : echo "release_tag=$(yq -r '.version' 'galaxy.yml')" >> $GITHUB_OUTPUT
53
50
shell : bash
54
- if : " contains(github.event.pull_request.labels.*.name, 'ok-to-tag')"
55
51
56
52
- name : create and push tag to Github repository
57
53
id : push-tag
82
78
python3 ./create_github_release.py --repository ${{ github.repository }} --release-tag ${{ steps.read-tag.outputs.release_tag }} --release-name "${{ inputs.release_prefix }} ${{ steps.read-tag.outputs.release_tag }}"
83
79
env :
84
80
GITHUB_TOKEN : ${{ secrets.gh_token }}
85
- if : ${{ ( inputs.release_publish) && contains(github.event.pull_request.labels.*.name, 'ok-to-tag') }}
81
+ if : ${{ inputs.release_publish }}
You can’t perform that action at this time.
0 commit comments