mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 15:31:21 +00:00
debug: Move step back after checkout, with fetch all
This commit is contained in:
parent
bb718525ef
commit
e104b3adc0
1 changed files with 11 additions and 10 deletions
21
.github/workflows/seo-report.yaml
vendored
21
.github/workflows/seo-report.yaml
vendored
|
@ -20,16 +20,6 @@ jobs:
|
|||
url: https://${{ github.repository_owner }}.github.io/${{ github.head_ref }}/
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get Deployment Source Branch Name
|
||||
id: git-branch
|
||||
run: |
|
||||
git branch -a --contains ${{ github.event.deployment.ref }}
|
||||
source_branches="$(git branch -a --contains ${{ github.event.deployment.ref }})"
|
||||
result=$(echo "$source_branches" | tail -n1 | sed 's/^[ \t]*//')
|
||||
echo "Remote source of deployment: ${result}"
|
||||
echo "Local git ref of deployment: ${result#remotes/origin/*}"
|
||||
echo "SOURCE_REF=${result#remotes/origin/*}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Check out
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
@ -41,6 +31,17 @@ jobs:
|
|||
- name: Install Dependencies
|
||||
run: yarn global add @unlighthouse/cli puppeteer
|
||||
|
||||
- name: Get Deployment Source Branch Name
|
||||
id: git-branch
|
||||
run: |
|
||||
git fetch --all
|
||||
git branch -a --contains ${{ github.event.deployment.ref }}
|
||||
source_branches="$(git branch -a --contains ${{ github.event.deployment.ref }})"
|
||||
result=$(echo "$source_branches" | tail -n1 | sed 's/^[ \t]*//')
|
||||
echo "Remote source of deployment: ${result}"
|
||||
echo "Local git ref of deployment: ${result#remotes/origin/*}"
|
||||
echo "SOURCE_REF=${result#remotes/origin/*}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Build Unlighthouse report
|
||||
run: |
|
||||
unlighthouse-ci \
|
||||
|
|
Loading…
Reference in a new issue