Skip to content

Commit 1914e80

Browse files
Fix issues with release workflow (#1526)
* Add inputs to workflow * Install devcontainers CLI * Setup node - v4 * Git setup * Ordering * Devcontaners bot * Checkout to branch * Permission to write
1 parent 41fff80 commit 1914e80

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/release-pr.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ name: Create release pull request
22

33
on:
44
workflow_dispatch:
5+
inputs:
56
version:
67
type: string
78
description: New version, in the form v0.4.x
89
required: true
9-
10+
11+
permissions:
12+
contents: write
1013

1114

1215
jobs:
@@ -17,14 +20,21 @@ jobs:
1720
version: ${{github.event.inputs.version}}
1821
steps:
1922
- uses: actions/checkout@v5
20-
- name: Checkout $target_branch
21-
run: git checkout -b $target_branch
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
- name: Install devcontainers CLI
28+
run: npm i -g @devcontainers/cli
2229
- name: Update manifest files
2330
run: ./build/prepare-release.sh
2431
- name: Push manifest updates
2532
env:
2633
GITHUB_TOKEN: ${{ secrets.PAT }}
2734
run: |
35+
git config --global user.email github-actions@github.com
36+
git config --global user.name github-actions
37+
git checkout -b $target_branch
2838
git add -A
2939
git commit -m "Release manifest update"
3040
git push origin $target_branch

0 commit comments

Comments
 (0)