diff --git a/Dockerfile b/Dockerfile index 64f42eb..f71229b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ # --- base stage --- # -FROM alpine:3.18 AS base +FROM alpine:3.19 AS base # hadolint ignore=DL3018 RUN apk add --no-cache --update \ - nodejs=18.17.0-r0 \ + nodejs=18.18.2-r0 \ git=2.40.1-r0 \ openssh=9.3_p2-r0 \ ca-certificates=20230506-r0 \ diff --git a/action.yml b/action.yml index 8bd9c14..e182ba4 100644 --- a/action.yml +++ b/action.yml @@ -19,8 +19,5 @@ inputs: default: "3000" runs: - using: 'node20' - main: 'dist/index.js' - post: 'dist/index.js' - post-if: success() - + using: docker + image: docker://ghcr.io/ahmadnassri/action-workflow-queue:1.2.0 diff --git a/docs/README.template b/docs/README.template index fed76c1..a5e7b5d 100644 --- a/docs/README.template +++ b/docs/README.template @@ -7,12 +7,11 @@ $about.description$ $body$ ----- -> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) • -> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri) +--- + +> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) [license-url]: LICENSE [license-img]: https://badgen.net/github/license/$about.repository$ - [release-url]: https://github.com/$about.repository$/releases [release-img]: https://badgen.net/github/release/$about.repository$ diff --git a/src/lib/runs.js b/src/lib/runs.js index cceedf4..6afc84a 100644 --- a/src/lib/runs.js +++ b/src/lib/runs.js @@ -17,7 +17,7 @@ export default async function ({ octokit, workflow_id, run_id, before }) { // find any instances of the same workflow const waiting_for = workflow_runs // limit to currently running ones - .filter(run => ['in_progress', 'queued', 'waiting', 'pending','action_required', 'requested'].includes(run.status)) + .filter(run => ['in_progress', 'queued', 'waiting', 'pending', 'action_required', 'requested'].includes(run.status)) // exclude this one .filter(run => run.id !== run_id) // get older runs