Skip to content

Commit a77d84a

Browse files
Test with creating a new branch manually
1 parent b517102 commit a77d84a

2 files changed

Lines changed: 13 additions & 16 deletions

File tree

.github/workflows/webplat-relnotes.yaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: Checkout repo
2222
uses: actions/checkout@v2
2323
- name: Install dependencies
24+
id: install
2425
run: |
2526
cd scripts
2627
npm install
@@ -29,16 +30,12 @@ jobs:
2930
run: |
3031
cd scripts
3132
node web-platform-release-notes.js
32-
- name: Create Pull Request
33-
uses: peter-evans/create-pull-request@v7
34-
with:
35-
token: ${{ secrets.GITHUB_TOKEN }}
36-
commit-message: "New Edge Beta web platform release notes"
37-
title: "New Edge Beta web platform release notes"
38-
body: "This PR was generated by the workflow to update the beta release notes."
39-
branch: "web-platform-release-notes"
40-
base: "main"
41-
branch-suffix: timestamp
42-
labels: "web-platform-release-notes"
43-
reviewers: "mikehoffms,captainbrosset,aluhrs13"
44-
assignees: "captainbrosset"
33+
- name: Commit the changes if any
34+
id: pr
35+
run: |
36+
git checkout -b web-platform-release-notes
37+
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
38+
git config --local user.name "${{ github.actor }}"
39+
git add .
40+
git commit -m "New beta web platform release notes"
41+
git push origin web-platform-release-notes

scripts/web-platform-release-notes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ async function main() {
5151
}
5252

5353
if (!nextBetaReleaseDate || !nextBetaVersion) {
54-
console.error("No future beta release date found.");
55-
process.exit(1);
54+
console.error("It's not time to create the next beta release notes.");
55+
process.exit(0);
5656
}
5757

5858
console.log(
@@ -204,7 +204,7 @@ async function main() {
204204
// 8. Create a new branch, commit the new file, and open a PR from this branch.
205205
// --------------------------------------------------
206206

207-
// This is done by the GitHub action that triggered this script. Not here.
207+
208208
}
209209

210210
main();

0 commit comments

Comments
 (0)