diff --git a/.github/actions/github-actions/release-action/action.yml b/.github/actions/github-actions/release-action/action.yml index 543f39b..4d07ae2 100644 --- a/.github/actions/github-actions/release-action/action.yml +++ b/.github/actions/github-actions/release-action/action.yml @@ -136,7 +136,7 @@ runs: branch_name=$(echo $info | jq -r '.branch_name') action_path=$(echo $info | jq -r '.action_path') release_type=$(echo $info | jq -r '.release_type') - if ! git rev-parse --quiet --verify $version; then + if ! git rev-parse --quiet --verify refs/heads/$version; then if ! git ls-remote --heads origin $version | grep -q $version; then git checkout ${{ inputs.base_branch }} git pull diff --git a/README.md b/README.md index 54eb6c3..0a0a469 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ At UPSIDER, we have a few internal repositories set up with a monorepo structure We are looking to add a few more features, such as extra signoff from non-coder, label based check, etc. -NOTES: +NOTE: (\*1) There are some other hacks, such as using an empty job with the same name to override the status, but those solutions do not provide the flexible control we are after.