File tree Expand file tree Collapse file tree 9 files changed +44
-17
lines changed
Expand file tree Collapse file tree 9 files changed +44
-17
lines changed Original file line number Diff line number Diff line change 1414 - x64
1515 ref :
1616 description :
17- Ref (Tag, branch, commit SHA) to release. Default to the
18- main branch .
17+ Ref (Tag, branch, commit SHA) to release.
18+ Defaults to the ref of the workflow .
1919 type : string
2020 workflow_call :
2121 inputs :
6565 uses : ./.github/actions/publish-action
6666 with :
6767 suffix : macOS-${{ inputs.arch }}
68- if : github.event_name != 'pull_request'
68+ if : github.event_name != 'pull_request'
Original file line number Diff line number Diff line change 55 inputs :
66 ref :
77 description :
8- Ref (Tag, branch, commit SHA) to release. Default to the
9- main branch .
8+ Ref (Tag, branch, commit SHA) to release.
9+ Defaults to the ref of the workflow .
1010 type : string
1111 workflow_call :
1212 inputs :
Original file line number Diff line number Diff line change 55 inputs :
66 ref :
77 description :
8- Ref (Tag, branch, commit SHA) to release. Default to the
9- main branch .
8+ Ref (Tag, branch, commit SHA) to release.
9+ Defaults to the ref of the workflow .
1010 type : string
1111 workflow_call :
1212 inputs :
Original file line number Diff line number Diff line change 66 tag :
77 description : Tag of the release to continue.
88 type : string
9+ required : true
910
1011jobs :
1112 check-version :
1617 id : check
1718 env :
1819 GH_TOKEN : ${{ github.token }}
19- TAG : ${{ github.event. inputs.tag }}
20+ TAG : ${{ inputs.tag }}
2021 run : |
2122 # Check if this is a release version (not RC)
2223 if [[ "$TAG" == *-rc* ]]; then
@@ -43,15 +44,15 @@ jobs:
4344 uses : ./.github/workflows/continue-release-common.yml
4445 with :
4546 release-type : production
46- tag : ${{ github.event. inputs.tag }}
47+ tag : ${{ inputs.tag }}
4748 secrets : inherit
4849
4950 copy-to-web-assets :
5051 name : Copy to web-assets to show the release on nordicsemi.com
5152 needs : [check-version, continue-release]
5253 runs-on : ubuntu-latest
5354 env :
54- TAG : ${{ github.event. inputs.tag }}
55+ TAG : ${{ inputs.tag }}
5556 steps :
5657 - name : Setup JFrog CLI
5758 uses : jfrog/setup-jfrog-cli@v4
6869
6970 publish-docs :
7071 uses : ./.github/workflows/docs-publish-prod.yml
72+ with :
73+ ref : ${{ inputs.tag }}
7174 needs : continue-release
7275 secrets : inherit
Original file line number Diff line number Diff line change 55 inputs :
66 tag :
77 description : Tag of the release to continue.
8+ required : true
89 type : string
910
1011jobs :
1617 id : check
1718 env :
1819 GH_TOKEN : ${{ github.token }}
19- TAG : ${{ github.event. inputs.tag }}
20+ TAG : ${{ inputs.tag }}
2021 run : |
2122 if [[ "$TAG" != *-rc* ]]; then
2223 echo "::error::Not running because $TAG is not a release candidate version"
3435 uses : ./.github/workflows/continue-release-common.yml
3536 with :
3637 release-type : rc
37- tag : ${{ github.event. inputs.tag }}
38+ tag : ${{ inputs.tag }}
3839 secrets : inherit
Original file line number Diff line number Diff line change 77 - .github/workflows/docs-bundle.yml
88 - doc
99 workflow_dispatch :
10- workflow_call :
10+ inputs :
11+ ref :
12+ description :
13+ Ref (Tag, branch, commit SHA) to publish the docs from.
14+ Defaults to the main branch.
15+ type : string
1116
1217jobs :
1318 create-doc-bundle :
1419 uses : NordicSemiconductor/pc-nrfconnect-shared/.github/workflows/docs-bundle.yml@main
1520 with :
1621 bundle-name : nrf-connect-desktop
22+ ref : ${{ inputs.ref }}
Original file line number Diff line number Diff line change 88 - doc
99 - .github/workflows/docs-*.yml
1010 workflow_dispatch :
11+ inputs :
12+ ref :
13+ description :
14+ Ref (Tag, branch, commit SHA) to publish the docs from.
15+ Defaults to the main branch.
16+ type : string
1117
1218jobs :
1319 publish-docs-bundle :
1420 uses : NordicSemiconductor/pc-nrfconnect-shared/.github/workflows/docs-publish.yml@main
1521 with :
1622 bundle-name : nrf-connect-desktop
1723 release-type : dev
24+ ref : ${{ inputs.ref }}
1825 secrets : inherit
Original file line number Diff line number Diff line change @@ -2,12 +2,22 @@ name: 'Docs: Publish to prod'
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ ref :
7+ description :
8+ Ref (Tag, branch, commit SHA) to publish the docs from.
9+ Defaults to the main branch.
10+ type : string
511 workflow_call :
12+ inputs :
13+ ref :
14+ type : string
615
716jobs :
817 publish-docs-bundle :
918 uses : NordicSemiconductor/pc-nrfconnect-shared/.github/workflows/docs-publish.yml@main
1019 with :
1120 bundle-name : nrf-connect-desktop
1221 release-type : prod
22+ ref : ${{ inputs.ref }}
1323 secrets : inherit
Original file line number Diff line number Diff line change 55 inputs :
66 ref :
77 description :
8- Ref (Tag, branch, commit SHA) to release. Default to the
9- main branch .
8+ Ref (Tag, branch, commit SHA) to release.
9+ Defaults to the ref of the workflow .
1010 type : string
1111
1212jobs :
1919 - name : Checkout code
2020 uses : actions/checkout@v4
2121 with :
22- ref : ${{ github.event. inputs.ref }}
22+ ref : ${{ inputs.ref }}
2323
2424 - name : Check version and existence
2525 id : check
5454 needs : check-version
5555 uses : ./.github/workflows/release-common.yml
5656 with :
57- ref : ${{ github.event. inputs.ref }}
57+ ref : ${{ inputs.ref }}
5858 release-type : production
5959 tag : ${{ needs.check-version.outputs.tag }}
6060 secrets : inherit
You can’t perform that action at this time.
0 commit comments