Skip to content

Commit 81a394b

Browse files
authored
Merge pull request #1994 from dev-hato/fix_deploy_ci_2
deploy-hato-botのHEAD_REF修正
2 parents 83be495 + 37f2016 commit 81a394b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-hato-bot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
id: get_python_version
123123
run: bash "${GITHUB_WORKSPACE}/scripts/deploy_hato_bot/update_version_python_version/get_python_version.sh"
124124
env:
125-
HEAD_REF: ${{github.head_ref}}
125+
HEAD_REF: ${{github.head_ref || github.event.release.tag_name}}
126126
- uses: dev-hato/actions-diff-pr-management@v1.1.1
127127
with:
128128
github-token: ${{secrets.GITHUB_TOKEN}}
@@ -153,7 +153,7 @@ jobs:
153153
- uses: actions/checkout@v3.1.0
154154
- run: bash "${GITHUB_WORKSPACE}/scripts/deploy_hato_bot/dockle/run_dockle.sh"
155155
env:
156-
HEAD_REF: ${{github.head_ref}}
156+
HEAD_REF: ${{github.head_ref || github.event.release.tag_name}}
157157

158158
deploy-complete:
159159
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)