This commit is contained in:
Tim Ruffles
2019-12-20 13:11:47 +00:00
parent 094540fe2f
commit 533e32613e
6 changed files with 16 additions and 9 deletions
+4
View File
@@ -10,4 +10,8 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: npm install --production - run: npm install --production
- run: "./test.sh" - run: "./test.sh"
- uses: ./
name: "Check container builds"
with:
format: shell
+2 -2
View File
@@ -1,6 +1,6 @@
on: on:
push: push:
branches: ["master"] branches: ["master", "deploy-test"]
jobs: jobs:
depoy: depoy:
@@ -13,7 +13,7 @@ jobs:
with: with:
format: html format: html
output: ./gh-pages/index.html output: ./gh-pages/index.html
- run: "pwd; ls" - run: "find ./gh-pages"
- uses: peaceiris/actions-gh-pages@v2 - uses: peaceiris/actions-gh-pages@v2
env: env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+2 -1
View File
@@ -1,6 +1,6 @@
# GitHub Actions humans.txt # GitHub Actions humans.txt
Lists out the humans who help feed and tend the robots of GitHub Actions. Lists out the humans who work, or worked, on the GitHub Actions product.
## Inputs ## Inputs
@@ -11,5 +11,6 @@ Options: `txt`, `json`, `shell`
- txt - a plaintext list of humans - txt - a plaintext list of humans
- json - a list of humans formatted for computers or humans who like their information computery - json - a list of humans formatted for computers or humans who like their information computery
- shell - a lovely colourful list of humans making full use of advanced terminal escape-code technology - shell - a lovely colourful list of humans making full use of advanced terminal escape-code technology
- html - a gh-pages friendly html output, which looks like a plaintext humans.txt
+3 -3
View File
@@ -23,7 +23,7 @@ function main() {
return return
} }
const data = yaml.parse(fs.readFileSync("./humans.txt.yaml", {encoding: "utf8"})) const data = yaml.parse(fs.readFileSync(__dirname + "/humans.txt.yaml", {encoding: "utf8"}))
formatter(data, {output}) formatter(data, {output})
} }
@@ -66,9 +66,9 @@ function mapColorRange(strings, base, total) {
function htmlFormatter(data, opts) { function htmlFormatter(data, opts) {
fs.writeSync(opts.output, `<!doctype html> fs.writeSync(opts.output, `<!doctype html>
<meta charset='utf8' /> <meta charset='utf8' />
<link rel="icon" type="image/x-icon" href="favicon.ico">
<title>Actions - humans.txt</title> <title>Actions - humans.txt</title>
<body><pre> <body><pre>`)
`)
txtFormatter(data, opts) txtFormatter(data, opts)
fs.writeSync(opts.output, "</pre></body>") fs.writeSync(opts.output, "</pre></body>")
} }
+4
View File
@@ -1,3 +1,7 @@
# add yourself to this list as a yaml
# object with the following keys:
# - name - string - your name
# - alum - boolean - whether you still work on Actions
humans: humans:
- name: Mona Lisa Octocat - name: Mona Lisa Octocat
honorary_human: true honorary_human: true
+1 -3
View File
@@ -1,3 +1 @@
cd /opt/humans.txt node /opt/humans.txt/action.js $@
node action.js $@