Skip to content

Commit ad258c0

Browse files
committed
github action
1 parent 4077ee6 commit ad258c0

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:18-bookworm-slim
2+
3+
# going headless
4+
ENV DEBIAN_FRONTEND=noninteractive
5+
6+
COPY . /app/
7+
COPY ./entrypoint.sh /entrypoint.sh
8+
9+
RUN cd /app && npm install --omit=dev
10+
11+
ENTRYPOINT ["/entrypoint.sh"]

action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'GitHub GraphQL Client'
2+
description: 'Perform multi-file signed commits on a GitHub repo through their GraphQL APIs.'
3+
branding:
4+
icon: edit-3
5+
color: gray-dark
6+
inputs:
7+
args:
8+
description: 'Arguments to pass to the Dockerfile entrypoint.'
9+
required: true
10+
default: '--help'
11+
runs:
12+
using: 'docker'
13+
image: 'Dockerfile'
14+
#env:
15+
# GITHUB_TOKEN is already available in the action container context
16+
# but be sure that it has 'writer' permissions on the target repository.
17+
args:
18+
- ${{ inputs.args }}

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
node /app/github.js $@

0 commit comments

Comments
 (0)