Add a debugging workflow to allow testing
If you push a branch to the main repo, and a branch here with the same name, then the update script here will use the same branch name instead of using `main`. This way, we can keep 2 branches in sync and then merge them. If a branch does not exist, we'll fallback to cloning master instead
This commit is contained in:
12
.github/workflows/update.yml
vendored
12
.github/workflows/update.yml
vendored
@@ -30,7 +30,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
name: Clone website
|
id: clone_same_branch
|
||||||
|
name: Clone website (Same Branch)
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
repository: endoflife-date/endoflife.date
|
||||||
|
path: website
|
||||||
|
submodules: false
|
||||||
|
ref: ${{github.ref_name}}
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
name: Clone website (Main)
|
||||||
|
if: steps.clone_same_branch.outcome != 'success'
|
||||||
with:
|
with:
|
||||||
repository: endoflife-date/endoflife.date
|
repository: endoflife-date/endoflife.date
|
||||||
path: website
|
path: website
|
||||||
|
|||||||
Reference in New Issue
Block a user