ci: doc: expose head branch to aws s3 upload step
`github.event.workflow_run.head_branch` contains the actual release tag on releases, so it is required. It does not affect the publication of "latest". Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
ec9346c605
commit
adb59f1cc1
1 changed files with 2 additions and 0 deletions
2
.github/workflows/doc-publish.yml
vendored
2
.github/workflows/doc-publish.yml
vendored
|
@ -39,6 +39,8 @@ jobs:
|
|||
aws-region: us-east-1
|
||||
|
||||
- name: Upload to AWS S3
|
||||
env:
|
||||
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
|
||||
run: |
|
||||
if [ "${HEAD_BRANCH:0:1}" == "v" ]; then
|
||||
VERSION=${HEAD_BRANCH:1}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue