Skip to content

workflow autoupdate_develop.yaml: add missing write permissions #3

workflow autoupdate_develop.yaml: add missing write permissions

workflow autoupdate_develop.yaml: add missing write permissions #3

name: Merge master into develop
on:
pull_request:
branches:
- master
types:
- closed
permissions:
contents: write
jobs:
merge-master-back-to-develop:
if: github.event.pull_request.merged == true
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Merge master back to develop
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
git fetch --unshallow
git checkout develop
git status
git merge --no-ff --allow-unrelated-histories origin/master -m "Auto-merge master back to develop"
git push