Skip to content

Commit

Permalink
Port to JS
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-challis committed Apr 26, 2024
1 parent 0bd428d commit 888055a
Show file tree
Hide file tree
Showing 8 changed files with 32,209 additions and 19 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/is-dist-up-to-date.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Verify built files are up to date
on:
pull_request:
merge_group:

jobs:
verify:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Verify that built files are up to date
run: git diff --exit-code
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
21 changes: 2 additions & 19 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ inputs:
description: "Commit sha, branch, tag, or whatever"
required: false
default: ${{ github.event.pull_request.head.sha || github.sha }}
initial-delay:
description: "Initial delay in seconds before fetching checks (default 5)"
required: false
default: "5"
interval:
description: "Interval in seconds between check of checks (default 5)"
required: false
Expand All @@ -32,18 +28,5 @@ inputs:
required: false
default: ""
runs:
using: "composite"
steps:
- name: Await CI outcome
id: sloth
shell: bash
run: |
${GITHUB_ACTION_PATH}/bin/sloth.sh \
${{ inputs.token }} \
${{ inputs.ref }} \
${{ github.repository }} \
${{ inputs.initial-delay }} \
${{ inputs.interval }} \
${{ inputs.timeout }} \
"${{ inputs.name }}" \
"${{ inputs.ignored }}"
using: node20
main: dist/index.js
Loading

0 comments on commit 888055a

Please sign in to comment.