Skip to content

Commit f37aa6c

Browse files
authored
Merge branch 'main' into test/showcase-retries
2 parents b3efec3 + 8236771 commit f37aa6c

6 files changed

Lines changed: 752 additions & 1354 deletions

File tree

.github/workflows/create_additional_release_tag.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
release:
88
types: [published]
99
workflow_dispatch:
10+
inputs:
11+
target_ref:
12+
description: 'Git ref (tag or SHA) to check out and tag. Defaults to branch HEAD if empty.'
13+
required: false
14+
default: ''
1015
jobs:
1116
build:
1217
runs-on: ubuntu-latest
@@ -18,6 +23,7 @@ jobs:
1823
- name: Checkout code
1924
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2025
with:
26+
ref: ${{ inputs.target_ref || github.ref }}
2127
token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
2228
persist-credentials: false
2329
- name: Set up Git
@@ -38,7 +44,7 @@ jobs:
3844
continue
3945
fi
4046
git tag $TAG_NAME
41-
git push origin $TAG_NAME
47+
git push https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git $TAG_NAME
4248
if [ "${ARTIFACT_ID}" = "libraries-bom" ]; then
4349
echo "Creating GitHub Release for ${TAG_NAME}"
4450
gh release create "${TAG_NAME}" --title "GCP Libraries BOM ${VERSION}" --notes "libraries-bom release."

0 commit comments

Comments
 (0)