Skip to content

Fixing completed workflow case #20

Fixing completed workflow case

Fixing completed workflow case #20

name: ⚡ Updating latest branch
on:
release:
types: [published]
jobs:
update-latest-branch:
name: 🛜 Update latest branch
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: 🔄 Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ⬇️ Checkout latest
run: git checkout latest
- name: 🔀 Rebase latest on master
run: git merge origin/master
- name: ⬆️ Push latest
run: git push origin latest