Merge pull request #484 from atlas-bi/renovate/actions-setup-python-5.x #185
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 Updates | |
on: | |
push: | |
branches: | |
- dev | |
- alpha | |
jobs: | |
alpha: | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'dev' | |
steps: | |
- name: πΎ Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: alpha | |
- name: π Reset promotion branch | |
run: | | |
git fetch origin ${{github.ref_name}}:${{github.ref_name}} | |
git reset --hard ${{github.ref_name}} | |
- name: π Create Pull Request | |
uses: peter-evans/create-pull-request@v5.0.2 | |
with: | |
labels: automated pr | |
branch: ${{github.ref_name}} | |
title: chore(sync) Syncing changes from ${{github.ref_name}} to alpha | |
main: | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'alpha' | |
steps: | |
- name: πΎ Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: π Reset promotion branch | |
run: | | |
git fetch origin ${{github.ref_name}}:${{github.ref_name}} | |
git reset --hard ${{github.ref_name}} | |
- name: π Create Pull Request | |
uses: peter-evans/create-pull-request@v5.0.2 | |
with: | |
labels: automated pr | |
branch: ${{github.ref_name}} | |
title: chore(sync) Syncing changes from ${{github.ref_name}} to main |