File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change 1919 cd common/mirror
2020 export JQ_FILTER="[.[] | {tag_name: .tag_name, assets: [.assets[] | {browser_download_url: .browser_download_url} ] } ]"
2121 curl -H "Authorization: ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq "$JQ_FILTER" > selenium
22+ - name : Set current date
23+ run : echo "DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
2224 - name : Commit files
2325 id : git
2426 run : |
@@ -27,12 +29,26 @@ jobs:
2729 git config --local user.email "[email protected] " 2830 git config --local user.name "Selenium CI Bot"
2931 git add common/mirror/selenium
30- git commit -m "Update mirror info (`date` )" -a
32+ git commit -m "Update mirror info (${{ env.DATE }} )" -a
3133 echo "::set-output name=commit::true"
3234 fi
33- - name : Push changes
35+ - name : Create PR
3436 if : steps.git.outputs.commit == 'true'
35- uses : ad-m/github-push-action@master
37+ uses : peter-evans/create-pull-request@v6
3638 with :
37- github_token : ${{ secrets.SELENIUM_CI_TOKEN }}
38- branch : ${{ github.ref }}
39+ token : ${{ secrets.GITHUB_TOKEN }}
40+ commit-message : " Update mirror info (${{ env.DATE }})"
41+ title : " [ci] Update mirror info (${{ env.DATE }})"
42+ body : |
43+ Automated update of `common/mirror/selenium`.
44+ - Trigger: ${{ github.event_name }}
45+ - Committer: Selenium CI Bot
46+ branch : ci/mirror-selenium-releases
47+ base : trunk
48+ labels : ci, automated
49+ delete-branch : true
50+ signoff : false
51+ reviewers : |
52+ bonigarcia
53+ add-paths : |
54+ common/mirror/selenium
You can’t perform that action at this time.
0 commit comments