File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Release WP-SSO
22
33on :
4- push :
5- branches : [main]
6- paths :
7- - ' .github/workflows/release.yml'
8- - ' RELEASE_NOTES.md'
94 workflow_dispatch :
105 inputs :
116 version :
12- description : ' Release version without the v prefix (for example 1.1 .0)'
7+ description : ' Release version without the v prefix (for example 1.2 .0)'
138 required : true
14- default : ' 1.0 .0'
9+ default : ' 1.1 .0'
1510
1611permissions :
1712 contents : write
3126 id : version
3227 shell : bash
3328 run : |
34- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
35- VERSION="${{ inputs.version }}"
36- else
37- VERSION="1.0.0"
38- fi
29+ VERSION="${{ inputs.version }}"
3930 echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4031 echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
4132
5849 cp 'WordPress SSO.xml' build/WordPress-SSO-IPS.xml
5950
6051 - name : Create tag when missing
61- env :
62- GH_TOKEN : ${{ github.token }}
6352 shell : bash
6453 run : |
6554 TAG="${{ steps.version.outputs.tag }}"
8675 build/wp-sso.zip \
8776 build/WordPress-SSO-IPS.xml \
8877 --title "$TITLE" \
89- --notes-file RELEASE_NOTES.md \
78+ --generate-notes \
9079 --verify-tag
9180 fi
You can’t perform that action at this time.
0 commit comments