File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
210210main ( ) ;
You can’t perform that action at this time.
0 commit comments