Skip to content

Commit

Permalink
chore: test action
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Jul 1, 2024
1 parent e3f306c commit 73489f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-admin-api-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fetch-depth: 0

- name: Build and update the API reference
if: env.CURRENT_HASH != env.WEEK_OLD_HASH
if: env.CURRENT_HASH = env.WEEK_OLD_HASH
run: |
# deps
nix-shell -p yarn --run "yarn add spectaql --non-interactive"
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
nix-shell -p yarn --run "yarn build"
- name: Deploy to GitHub Pages
if: env.CURRENT_HASH != env.WEEK_OLD_HASH
if: env.CURRENT_HASH = env.WEEK_OLD_HASH
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/update-public-api-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ jobs:
fetch-depth: 0

- name: Build and update the API reference
if: env.CURRENT_HASH != env.WEEK_OLD_HASH
if: env.CURRENT_HASH = env.WEEK_OLD_HASH
run: |
# deps
yarn add spectaql --non-interactive
nix-shell -p yarn --run "yarn add spectaql --non-interactive"
# checkout blink
cd blink
git checkout ${{ env.CURRENT_COMMIT_HASH }}
# build public api reference
npx spectaql ../dev.blink.sv/scripts/spectaql/spectaql-config-public-api.yml \
-t ../dev.blink.sv/static -f public-api-reference.html
nix-shell -p yarn --run "npx spectaql ../dev.blink.sv/scripts/spectaql/spectaql-config-public-api.yml \
-t ../dev.blink.sv/static -f public-api-reference.html"
# set dark mode
sed -i 's/spectaql.min.css/spectaql.dark.css/' ../dev.blink.sv/static/public-api-reference.html
Expand All @@ -84,6 +84,7 @@ jobs:
nix-shell -p yarn --run "yarn build"
- name: Deploy to GitHub Pages
if: env.CURRENT_HASH = env.WEEK_OLD_HASH
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 73489f1

Please sign in to comment.