Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/release_create_rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ jobs:

- name: Attempt RC Tagging
id: tagger
run: |
bazel run //tools/private/release -- \
create-rc --issue ${{ inputs.issue }} --remote origin
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ inputs.issue }}
run: |
bazel run //tools/private/release -- \
create-rc --issue "$ISSUE" --remote origin

call_release:
needs: tag_rc
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/release_prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ jobs:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Run Release Preparation Pipeline
run: |
bazel run //tools/private/release -- \
prepare ${{ inputs.issue && format('--issue={0}', inputs.issue) || '' }} --no-dry-run
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ inputs.issue }}
run: |
ARGS=()
if [ -n "$ISSUE" ]; then
ARGS+=("--issue=$ISSUE")
fi
bazel run //tools/private/release -- \
prepare "${ARGS[@]}" --no-dry-run
17 changes: 10 additions & 7 deletions .github/workflows/release_process_backports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,22 @@ jobs:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Process Pending Backports
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ADD_BACKPORTS: ${{ inputs.add_backports }}
COMMENT_ID: ${{ inputs.comment_id }}
ISSUE: ${{ inputs.issue }}
run: |
ARGS=()
if [ -n "${{ inputs.add_backports }}" ]; then
ARGS+=("--add=${{ inputs.add_backports }}")
if [ -n "$ADD_BACKPORTS" ]; then
ARGS+=("--add=$ADD_BACKPORTS")
fi
if [ -n "${{ inputs.comment_id }}" ]; then
ARGS+=("--triggering-comment=${{ inputs.comment_id }}")
if [ -n "$COMMENT_ID" ]; then
ARGS+=("--triggering-comment=$COMMENT_ID")
fi

bazel run //tools/private/release -- process-backports \
--issue ${{ inputs.issue }} \
--issue "$ISSUE" \
--remote origin \
--no-dry-run \
"${ARGS[@]}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 8 additions & 6 deletions .github/workflows/release_promote_rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ jobs:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Run Promote RC
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ inputs.version }}
ISSUE: ${{ inputs.issue }}
run: |
ARGS=()
if [ -n "${{ inputs.version }}" ]; then
ARGS+=("${{ inputs.version }}")
if [ -n "$VERSION" ]; then
ARGS+=("$VERSION")
fi
if [ -n "${{ inputs.issue }}" ]; then
ARGS+=("--issue" "${{ inputs.issue }}")
if [ -n "$ISSUE" ]; then
ARGS+=("--issue" "$ISSUE")
fi
ARGS+=("--remote" "origin")
ARGS+=("--no-dry-run")

bazel run //tools/private/release -- promote-rc "${ARGS[@]}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}