Skip to content

Commit

Permalink
Build PR branch before running stats
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeLonewolf committed Dec 16, 2023
1 parent a6803d7 commit abfd29f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ jobs:
npm run shields
cp src/configs/config.aws.js src/config.js
working-directory: main
- name: Capture main branch usage statistics
id: main-stats
run: |
MAIN_STATS=$(node scripts/stats.js -d ../main/dist -j)
echo "MAIN_STATS<<EOF" >> $GITHUB_ENV
echo -e "$MAIN_STATS" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
working-directory: pr-branch
- name: Checkout PR Branch 🛎️
uses: actions/checkout@v3
- name: Install and Build PR Branch 🔧
Expand All @@ -61,6 +53,14 @@ jobs:
cp -r shieldlib/docs/* dist/shield-docs
mv dist ..
working-directory: pr-branch
- name: Capture main branch usage statistics
id: main-stats
run: |
MAIN_STATS=$(node scripts/stats.js -d ../main/dist -j)
echo "MAIN_STATS<<EOF" >> $GITHUB_ENV
echo -e "$MAIN_STATS" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
working-directory: pr-branch
- name: Start main branch map server
id: main-start-server
run: |
Expand Down

0 comments on commit abfd29f

Please sign in to comment.