-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create github action for update the BR steps
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Automatic Update and Publish PR for Bitrise Steps | ||
on: | ||
schedule: | ||
- cron: '0 */6 * * *' | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Modify bitrise.yml | ||
run: | | ||
python ./test-fixtures/update.py | ||
- name: Commit and push if bitrise.yml changed | ||
run: |- | ||
git diff | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Firefox Test Engineering" | ||
git diff --quiet || (git add bitrise.yml) | ||
- name: Auto Update Bitrise Steps Versions | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: Auto Update Bitrise Steps Versions | ||
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
committer: GitHub <[email protected]> | ||
title: Update Bitrise YML file with latest steps versions | ||
branch: update-br-new-steps-versions | ||
token: ${{ secrets.GITHUB_TOKEN }} |