Skip to content

Commit e3e1ebb

Browse files
committed
push
1 parent 2ef0ba2 commit e3e1ebb

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.github/actions/publish-release/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ runs:
127127
with:
128128
npm-package: '@google/gemini-cli@${{ inputs.release-version }}'
129129
expected-version: '${{ inputs.release-version }}'
130+
ref: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
130131

131132
- name: '🏷️ Tag release'
132133
uses: './.github/actions/tag-release'
@@ -140,6 +141,7 @@ runs:
140141
with:
141142
npm-package: '@google/gemini-cli@${{ inputs.npm-tag }}'
142143
expected-version: '${{ inputs.release-version }}'
144+
ref: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
143145

144146
- name: '🎁 Bundle'
145147
working-directory: '${{ inputs.working-directory }}'

.github/actions/verify-release/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@ inputs:
99
expected-version:
1010
description: 'Expected version'
1111
required: true
12+
ref:
13+
description: 'The branch, tag, or SHA to release from.'
14+
required: false
15+
type: 'string'
16+
default: 'main'
1217

1318
runs:
1419
using: 'composite'
1520
steps:
1621
- name: 'Checkout'
1722
uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4
23+
with:
24+
ref: '${{ github.event.inputs.ref }}'
25+
fetch-depth: 0
1826

1927
- name: 'Install from NPM'
2028
id: 'npm_install'

.github/workflows/verify-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,20 @@ on:
2121
- 'preview'
2222
- 'nightly'
2323
- 'dev'
24+
ref:
25+
description: 'The branch, tag, or SHA to release from.'
26+
required: false
27+
type: 'string'
28+
default: 'main'
2429

2530
jobs:
2631
build:
2732
runs-on: 'self-hosted'
2833
steps:
2934
- uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
30-
- name: 'Run my composite action'
35+
- name: 'Verify release'
3136
uses: './.github/actions/verify-release'
3237
with:
3338
npm-package: '${github.event.inputs.npm-package}@${github.event.inputs.channel}'
3439
expected-version: '${github.event.inputs.version}'
40+
ref: '${github.event.inputs.ref}'

0 commit comments

Comments
 (0)