Skip to content

Step 1

Step 1 #3

name: Step 1, Create a branch
on:
create:
push:
permissions:
contents: write
jobs:
to_step_2:
if: >
github.event_name == 'create' && github.event.ref_type == 'branch'
|| (github.event_name == 'push' && startsWith(github.ref, 'refs/heads/') && github.ref != 'refs/heads/main')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update to step 2
uses: skills/action-update-step@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 1
to_step: 2
branch_name: my-first-branch
base_branch_name: main