From 741a2ae30091e0baf884e023faad2c36e52bb1ab Mon Sep 17 00:00:00 2001 From: mbarone Date: Wed, 4 Dec 2024 06:38:09 +0100 Subject: [PATCH] Create github action for update the BR steps --- .../workflows/firefox-ios-bitrise-steps.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/firefox-ios-bitrise-steps.yml diff --git a/.github/workflows/firefox-ios-bitrise-steps.yml b/.github/workflows/firefox-ios-bitrise-steps.yml new file mode 100644 index 000000000000..ed26e4b82d95 --- /dev/null +++ b/.github/workflows/firefox-ios-bitrise-steps.yml @@ -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 "firefox-test-engineering@mozilla.com" + 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 + title: Update Bitrise YML file with latest steps versions + branch: update-br-new-steps-versions + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file