Skip to content

Commit

Permalink
Auto run sipify on PRs (#58057)
Browse files Browse the repository at this point in the history
By commenting /sipify on a PR, this workflow will automatically update the branch after running sipify_all
  • Loading branch information
3nids authored Jul 11, 2024
1 parent 5f85a82 commit 7c32a89
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pr-fixer-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Run sipify on PR

on:
issue_comment:
types: [created]

jobs:
sipify:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '/sipify')
runs-on: [ubuntu-latest]
steps:

- name: Get PR branch
uses: alessbell/[email protected]
id: comment-branch

- uses: actions/checkout@v4
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
repository: ${{ steps.comment-branch.outputs.head_owner }}/${{ steps.comment-branch.outputs.head_repo }}
token: ${{ secrets.GH_TOKEN_BOT }}

- name: Install Requirements
run: |
sudo apt install -y \
cpanminus \
libyaml-tiny-perl \
libio-socket-ssl-perl \
libhttp-date-perl \
libgetopt-long-descriptive-perl \
libmoo-perl \
libnamespace-clean-perl \
libpath-tiny-perl \
libpod-constants-perl \
libscalar-list-utils-perl \
libsort-key-perl \
libstrictures-perl \
libstring-escape-perl \
libtry-tiny-perl
- name: run sipify
run: ./scripts/sipify_all.sh

- name: commit
run: |
git config user.name qgis-bot
git config user.email [email protected]
git add .
git commit -m "auto sipify 🍺"
git push

0 comments on commit 7c32a89

Please sign in to comment.