Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 6 additions & 12 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ jobs:

checks=$(gh api "repos/$GITHUB_REPOSITORY/commits/$PR_HEAD_SHA/check-runs?per_page=100")
if jq -e '
.check_runs
| map({key: [.name, .app.id], run: .})
| group_by(.key)
| map(max_by([.run.started_at, .run.id]) | .run) as $latest
.total_count <= 100 and
(.check_runs as $runs
| ([
["CI", 15368],
["Check", 15368],
Expand All @@ -52,17 +50,13 @@ jobs:
["Analyze (actions)", 15368],
["Analyze (javascript-typescript)", 15368]
] | all(.[]; . as $required |
($latest | any(.[];
.name == $required[0] and .app.id == $required[1] and
.status == "completed" and .conclusion == "success"
))
($runs | map(select(.name == $required[0] and .app.id == $required[1]))) as $found
| ($found | length > 0 and all(.[]; .status == "completed" and .conclusion == "success"))
))
and ($latest | all(.[];
and ($runs | all(.[];
.name == "Strict Dependabot gate" or
.name == "Enable auto-merge" or
(.name == "deploy" and .status == "completed" and .conclusion == "skipped") or
(.status == "completed" and .conclusion == "success")
))
)))
' <<< "$checks" > /dev/null; then
echo "All exact-head checks passed on $PR_HEAD_SHA."
exit 0
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/pages-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check Docs for GitHub Pages

on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
build:
name: Build Pages
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
pages: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1.0.13
with:
source: ./docs
destination: ./_site
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: ./_site
4 changes: 1 addition & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Deploy Docs to GitHub Pages
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -36,7 +34,7 @@ jobs:
path: ./_site

deploy:
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
Loading