Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/update-version-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
ref: main

- name: Set up Nix
uses: cachix/install-nix-action@v31

- name: Update version dashboard
run: nix-shell --run 'npm run generate:version-compatibility-dashboard'
run: |
nix-shell --run 'npm run generate:version-compatibility-dashboard'
nix-shell --run 'npm run generate:network-variable-tabs'

- name: Detect changes
id: changes
Expand Down Expand Up @@ -55,7 +59,7 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

git switch -c "$PR_BRANCH"
git add config/repo-version-config.json docs-main/snippets/generated/version-dashboard-data.mdx
git add config/repo-version-config.json docs-main
git commit -m "$PR_TITLE"

if remote_sha="$(git ls-remote --heads origin "$PR_BRANCH" | awk '{print $1}')" && [[ -n "$remote_sha" ]]; then
Expand All @@ -70,6 +74,7 @@ jobs:

Validation run by the workflow:
- `npm run generate:version-compatibility-dashboard`
- `npm run generate:network-variable-tabs`
- `git diff --check`
EOF

Expand Down