Use a branch a pull requests to propose changes from update.sh

This commit is contained in:
Pablo Zmdl 2024-12-02 14:47:14 +01:00
parent bf92461681
commit 347bdfe86c

View File

@ -26,9 +26,11 @@ jobs:
run: |
git config --local user.email "workflow@github.com"
git config --local user.name "GitHub Workflow"
git switch -C changes-from-update.sh
git add -A
git commit -m "Update roundcube version (via update.sh)" || echo "Nothing to update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.WOKFLOW_TOKEN }}
git push --force-with-lease origin
- name: Create Pull Request
run: gh pr create -B master -H changes-from-update.sh --title 'Changes from update.sh' --assignee pabzm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}