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:
Nemo
2022-07-10 15:35:26 +05:30
parent 682995f1ec
commit 32450c162c

View File

@@ -30,7 +30,17 @@ jobs:
with:
ref: ${{ github.head_ref }}
- 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:
repository: endoflife-date/endoflife.date
path: website