Skip to content

Commit 741a2ae

Browse files
committed
Create github action for update the BR steps
1 parent c8680a6 commit 741a2ae

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Automatic Update and Publish PR for Bitrise Steps
2+
on:
3+
schedule:
4+
- cron: '0 */6 * * *'
5+
workflow_dispatch: {}
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Modify bitrise.yml
13+
run: |
14+
python ./test-fixtures/update.py
15+
- name: Commit and push if bitrise.yml changed
16+
run: |-
17+
git diff
18+
git config --global user.email "[email protected]"
19+
git config --global user.name "Firefox Test Engineering"
20+
git diff --quiet || (git add bitrise.yml)
21+
- name: Auto Update Bitrise Steps Versions
22+
uses: peter-evans/create-pull-request@v6
23+
with:
24+
commit-message: Auto Update Bitrise Steps Versions
25+
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
26+
committer: GitHub <[email protected]>
27+
title: Update Bitrise YML file with latest steps versions
28+
branch: update-br-new-steps-versions
29+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)