Fix invalid SQS propagation introduced with #3206 (#3254) #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync branches | |
on: | |
push: | |
branches: | |
- main | |
# Limit permissions | |
permissions: | |
contents: write | |
jobs: | |
sync: | |
name: Sync branches | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Synchronize source to target branch | |
run: | | |
git checkout -f "${SOURCE_BRANCH}" | |
git checkout -f -b "${TARGET_BRANCH}" | |
git rebase "${SOURCE_BRANCH}" | |
git --no-pager log -n1 --pretty=oneline | |
git rev-parse --abbrev-ref HEAD | |
git push origin "${TARGET_BRANCH}" | |
env: | |
SOURCE_BRANCH: main | |
TARGET_BRANCH: stable |