Skip to content

Commit

Permalink
Add workflow to update test branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 27, 2024
1 parent 634d0a4 commit d4bfecc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/create-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,33 @@ name: create-test-pr
on:
workflow_dispatch:

env:
TEST_BRANCH: main-test

jobs:
create-test-pr:
sync-branch:
name: Update test branch
runs-on: ubuntu-latest
steps:
- name: Check out main branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Check out main branch
uses: connor-baer/[email protected]
with:
branch: ${{ env.TEST_BRANCH }}
token: ${{ secrets.GITHUB_TOKEN }}
force: true

create-pr:
runs-on: ubuntu-latest
depends_on:
- sync-branch
steps:
- name: Check out test branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
ref: main-test
ref: ${{ env.TEST_BRANCH }}
persist-credentials: false

- name: Make changes
Expand Down
Empty file.

0 comments on commit d4bfecc

Please sign in to comment.