File tree Expand file tree Collapse file tree 3 files changed +7
-15
lines changed
Expand file tree Collapse file tree 3 files changed +7
-15
lines changed Original file line number Diff line number Diff line change 1919
2020 - name : Get asdf version
2121 id : asdf-version
22- run : echo "version=0.18.0 " >> "$GITHUB_OUTPUT"
22+ run : echo "version=$(awk '!/^#/ && NF {print $1; exit}' .tool-versions.asdf) " >> "$GITHUB_OUTPUT"
2323
2424 - name : Load config value
2525 id : load-config
2929
3030 quality_checks :
3131 uses :
NHSDigital/eps-workflow-quality-checks/.github/workflows/[email protected] 32- needs : [get_asdf_version]
33- with :
34- asdfVersion : ${{ needs.get_asdf_version.outputs.asdf_version }}
3532 secrets :
3633 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
3734
4744
4845 tag_release :
4946 needs : [quality_checks, get_commit_id, get_asdf_version]
50- uses : NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@f80157cecce288dd175e61b477a1d2dbe9c88b99
47+ uses : NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@2a3f4ab96e04b7547c4ee5b786745b98809c89be
5148 with :
5249 dry_run : true
5350 asdfVersion : ${{ needs.get_asdf_version.outputs.asdf_version }}
Original file line number Diff line number Diff line change 2929
3030 quality_checks :
3131 uses :
NHSDigital/eps-workflow-quality-checks/.github/workflows/[email protected] 32- needs : [get_asdf_version]
33- with :
34- asdfVersion : ${{ needs.get_asdf_version.outputs.asdf_version }}
3532 secrets :
3633 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
3734
Original file line number Diff line number Diff line change 11name : deploy to environments
2+ # Trigger workflows test
23
34on :
45 workflow_dispatch :
1112 branches : [main]
1213
1314env :
14- BRANCH_NAME : ${{ github.event.ref.BRANCH_NAME }}
15+ BRANCH_NAME : ${{ github.event_name == 'pull_request' && github. event.pull_request.head. ref || github.ref_name }}
1516
1617jobs :
1718 get_asdf_version :
2526
2627 - name : Get asdf version
2728 id : asdf-version
28- run : echo "version=0.18.0 " >> "$GITHUB_OUTPUT"
29+ run : echo "version=$(awk '!/^#/ && NF {print $1; exit}' .tool-versions.asdf) " >> "$GITHUB_OUTPUT"
2930
3031 - name : Load config value
3132 id : load-config
3536
3637 quality_checks :
3738 uses :
NHSDigital/eps-workflow-quality-checks/.github/workflows/[email protected] 38- needs : [get_asdf_version]
39- with :
40- asdfVersion : ${{ needs.get_asdf_version.outputs.asdf_version }}
4139 secrets :
4240 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
4341
5351
5452 tag_release :
5553 needs : [quality_checks, get_commit_id, get_asdf_version]
56- uses : NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@f80157cecce288dd175e61b477a1d2dbe9c88b99
54+ uses : NHSDigital/eps-workflow-semantic-release/.github/workflows/tag-release.yml@2a3f4ab96e04b7547c4ee5b786745b98809c89be
5755 with :
58- dry_run : false
56+ dry_run : true
5957 asdfVersion : ${{ needs.get_asdf_version.outputs.asdf_version }}
6058 branch_name : main
6159 publish_package : false
You can’t perform that action at this time.
0 commit comments