From 32450c162cd8ebeeafd2f6e549cdf5b4ec0409d7 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 10 Jul 2022 15:35:26 +0530 Subject: [PATCH] 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 --- .github/workflows/update.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 11bf6c30..e8c60585 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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