Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Sep 23, 2022
1 parent 3e0d1b1 commit 6f005d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ runs:

- shell: bash
run: |
# TODO GITHUB_REF: Branch or tag to be deployed (empty if created with a commit SHA)
cat << EOS >> "$GITHUB_ENV"
GHA_SHA=${{fromJSON(inputs.data).event.deployment.sha}}
GHA_COMMIT_STATUS_SHA=${{fromJSON(inputs.data).event.deployment.sha}}
GHA_REF=${{fromJSON(inputs.data).event.deployment.ref}}
GHA_REF=refs/heads/${{fromJSON(inputs.data).event.deployment.ref}}
GHA_REF_NAME=${{fromJSON(inputs.data).event.deployment.ref}}
EOS
if: env.GHA_EVENT_NAME == 'deployment' || env.GHA_EVENT_NAME == 'deployment_status'
Expand Down
2 changes: 1 addition & 1 deletion testdata/discussion/normal/envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ GHA_REPOSITORY_OWNER: octo-org
GHA_REPOSITORY_NAME: octo-repo
GHA_SHA:
GHA_COMMIT_STATUS_SHA:
GHA_REF: main
GHA_REF: refs/heads/main
GHA_REF_NAME: main
2 changes: 1 addition & 1 deletion testdata/discussion_comment/normal/envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ GHA_REPOSITORY_OWNER: octo-org
GHA_REPOSITORY_NAME: octo-repo
GHA_SHA:
GHA_COMMIT_STATUS_SHA:
GHA_REF: main
GHA_REF: refs/heads/main
GHA_REF_NAME: main
2 changes: 1 addition & 1 deletion testdata/release/normal/envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ GHA_REPOSITORY_OWNER: gha-trigger
GHA_REPOSITORY_NAME: gha-trigger
GHA_SHA:
GHA_COMMIT_STATUS_SHA:
GHA_REF: v0.1.0
GHA_REF: refs/tags/v0.1.0
GHA_REF_NAME: v0.1.0

0 comments on commit 6f005d9

Please sign in to comment.