Compare commits
87
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1e64ef734 | ||
|
|
472d065851 | ||
|
|
e018cd0a18 | ||
|
|
7d8a20d5df | ||
|
|
d953d3fa44 | ||
|
|
71716363fb | ||
|
|
c2f20f3fa9 | ||
|
|
2d3bbee0b6 | ||
|
|
a4ff86f533 | ||
|
|
5c5f19f207 | ||
|
|
19e5194618 | ||
|
|
8d40c2d1a2 | ||
|
|
7eb983848d | ||
|
|
3072814325 | ||
|
|
1268308f9c | ||
|
|
fd56c215cf | ||
|
|
c6f8236aa0 | ||
|
|
3c8ba18cbd | ||
|
|
bf90df6228 | ||
|
|
d7b83655fc | ||
|
|
26d0a7fb08 | ||
|
|
77323cce96 | ||
|
|
79244894e6 | ||
|
|
d6eb854dd1 | ||
|
|
87be3730df | ||
|
|
50b8ac6582 | ||
|
|
1357de1e4f | ||
|
|
7cbb28110f | ||
|
|
224d1af49a | ||
|
|
63a0327a1c | ||
|
|
96ebe45954 | ||
|
|
24ca0a728d | ||
|
|
4bdcd81bb0 | ||
|
|
1cfbdd4652 | ||
|
|
1c82922b05 | ||
|
|
2078e327a8 | ||
|
|
994d6dd742 | ||
|
|
1b9db8eb94 | ||
|
|
0fa3eeb44c | ||
|
|
ed22c258ec | ||
|
|
84be2ab061 | ||
|
|
de8e7187ad | ||
|
|
b35c71f032 | ||
|
|
d7c70385a0 | ||
|
|
b876fb89e2 | ||
|
|
e3b8613ed8 | ||
|
|
31b02760ba | ||
|
|
4112b12d70 | ||
|
|
821db2c4cd | ||
|
|
acd838a526 | ||
|
|
ea17d0ab62 | ||
|
|
0ab142f9fe | ||
|
|
39261f1943 | ||
|
|
783e97bdc8 | ||
|
|
c04d5bf7fe | ||
|
|
455a63efaa | ||
|
|
a82b4512c1 | ||
|
|
a5ba794064 | ||
|
|
cf3f418831 | ||
|
|
521a6ae6e8 | ||
|
|
826327b9c4 | ||
|
|
5e3ebb0ad2 | ||
|
|
b0455c9b7a | ||
|
|
437fdafb24 | ||
|
|
ea3e89e4d2 | ||
|
|
52e4aace61 | ||
|
|
3a0c1ce8bd | ||
|
|
a8baeb7b17 | ||
|
|
323e57aec6 | ||
|
|
5f40fa3ce6 | ||
|
|
ce47446a48 | ||
|
|
21d1922c4a | ||
|
|
16a6e60d32 | ||
|
|
1b5aafb448 | ||
|
|
0c3f4946d3 | ||
|
|
533e32613e | ||
|
|
094540fe2f | ||
|
|
83879efd75 | ||
|
|
b092f30436 | ||
|
|
3195503f1f | ||
|
|
ce6486363e | ||
|
|
552403eec3 | ||
|
|
52fde88320 | ||
|
|
5222a0fbf7 | ||
|
|
7a07e071c0 | ||
|
|
a9625873ff | ||
|
|
67128ceb50 |
@@ -1,3 +1,5 @@
|
|||||||
|
name: CI 🔨
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["**"]
|
branches: ["**"]
|
||||||
@@ -10,4 +12,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
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
name: Deploy 🚀
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main", "deploy-test"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: mkdir gh-pages
|
||||||
|
- run: cp favicon.ico gh-pages
|
||||||
|
- uses: ./
|
||||||
|
with:
|
||||||
|
format: html
|
||||||
|
output: ./gh-pages/index.html
|
||||||
|
- run: "find ./gh-pages"
|
||||||
|
- uses: peaceiris/[email protected]
|
||||||
|
with:
|
||||||
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
|
publish_dir: gh-pages
|
||||||
@@ -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](https://actions.github.io/humans.txt) the humans who work, or worked, on the GitHub Actions product. Add yourself via PR if you work or worked on the product ❤️
|
||||||
|
|
||||||
## Inputs
|
## Inputs
|
||||||
|
|
||||||
@@ -11,5 +11,8 @@ 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
|
||||||
|
|
||||||
|
## humans.txt
|
||||||
|
|
||||||
|
This automatically deploys to https://actions.github.io/humans.txt.
|
||||||
|
|||||||
@@ -6,14 +6,16 @@ const chalk = require('chalk')
|
|||||||
|
|
||||||
const formatters = {
|
const formatters = {
|
||||||
txt: txtFormatter,
|
txt: txtFormatter,
|
||||||
|
html: htmlFormatter,
|
||||||
json: jsonFormatter,
|
json: jsonFormatter,
|
||||||
shell: (data) => txtFormatter(data, { colors: true}),
|
shell: (data, opts) => txtFormatter(data, { ...opts, colors: true}),
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
const format = process.argv[2] || ((process.env.GITHUB_ACTION || process.stdout.isTTY) ? "shell" : "txt")
|
const format = process.argv[2] || ((process.env.GITHUB_ACTION || process.stdout.isTTY) ? "shell" : "txt")
|
||||||
|
const output = process.argv[3] ? fs.openSync(process.argv[3], "w+") : 1;
|
||||||
|
|
||||||
const formatter = formatters[format]
|
const formatter = formatters[format]
|
||||||
if (!formatter) {
|
if (!formatter) {
|
||||||
@@ -21,23 +23,25 @@ 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)
|
data.humans = data.humans.sort((a,b) => a.name > b.name ? 1 : -1)
|
||||||
|
|
||||||
|
formatter(data, {output})
|
||||||
}
|
}
|
||||||
|
|
||||||
function invalidFormat(format) {
|
function invalidFormat(format) {
|
||||||
const list = Object.keys(formatters).sort().join(",")
|
const list = Object.keys(formatters).sort().join(",")
|
||||||
console.error(`'${format}' is not one of the accepted formats ${list}`)
|
console.error(`'${format}' is not one of the accepted formats ${list}`)
|
||||||
process.statusCode = 1
|
process.exitCode = 1
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
function jsonFormatter({humans}) {
|
function jsonFormatter({humans}, {output}) {
|
||||||
console.log(JSON.stringify(humans, null, 4))
|
fs.writeSync(output, JSON.stringify(humans, null, 4))
|
||||||
}
|
}
|
||||||
|
|
||||||
function txtFormatter({humans}, {colors = false} = {}) {
|
function txtFormatter({humans}, {colors = false, output} = {}) {
|
||||||
let active = humans.filter(h => !h.alum).map(h => h.name)
|
let active = humans.filter(h => !h.alum).map(h => h.name)
|
||||||
let alum = humans.filter(h => h.alum).map(h => h.name)
|
let alum = humans.filter(h => h.alum).map(h => h.name)
|
||||||
|
|
||||||
@@ -47,17 +51,26 @@ function txtFormatter({humans}, {colors = false} = {}) {
|
|||||||
alum = mapColorRange(alum, active.length, total)
|
alum = mapColorRange(alum, active.length, total)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Current humans")
|
fs.writeSync(output, "Current humans\n")
|
||||||
console.log("==============\n")
|
fs.writeSync(output,"==============\n\n")
|
||||||
console.log(active.join("\n"))
|
fs.writeSync(output,active.join("\n"))
|
||||||
console.log("\n")
|
fs.writeSync(output,"\n\n")
|
||||||
|
|
||||||
console.log("Human alumni")
|
fs.writeSync(output,"Human alumni\n")
|
||||||
console.log("============\n")
|
fs.writeSync(output,"============\n\n")
|
||||||
console.log(alum.join("\n"))
|
fs.writeSync(output,alum.join("\n"))
|
||||||
}
|
}
|
||||||
|
|
||||||
function mapColorRange(strings, base, total) {
|
function mapColorRange(strings, base, total) {
|
||||||
return strings.map((n, i) => chalk.hsl(((i + base) / total) * 360, 100, 50)(n))
|
return strings.map((n, i) => chalk.hsl(((i + base) / total) * 360, 100, 50)(n))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function htmlFormatter(data, opts) {
|
||||||
|
fs.writeSync(opts.output, `<!doctype html>
|
||||||
|
<meta charset='utf8' />
|
||||||
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
|
<title>Actions - humans.txt</title>
|
||||||
|
<body><pre>`)
|
||||||
|
txtFormatter(data, opts)
|
||||||
|
fs.writeSync(opts.output, "</pre></body>")
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,10 +2,13 @@ name: 'GitHub Actions humans.txt'
|
|||||||
description: 'List out the humans who help feed and tend the robots of GitHub Actions'
|
description: 'List out the humans who help feed and tend the robots of GitHub Actions'
|
||||||
inputs:
|
inputs:
|
||||||
format:
|
format:
|
||||||
description: 'How to output the people of actions - txt, json or ascii'
|
description: 'How to output the people of actions - txt, json, html or ascii'
|
||||||
default: 'ascii'
|
default: 'ascii'
|
||||||
|
output:
|
||||||
|
description: 'Where to output the file - stdout otherwise'
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
args:
|
args:
|
||||||
- ${{ inputs.format }}
|
- "${{ inputs.format }}"
|
||||||
|
- "${{ inputs.output }}"
|
||||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
+42
-1
@@ -1,4 +1,45 @@
|
|||||||
|
# add yourself to this list as a yaml
|
||||||
|
# object with the following keys:
|
||||||
|
# - name - string - your name
|
||||||
|
# - alum - boolean - whether you no longer work on Actions
|
||||||
humans:
|
humans:
|
||||||
- name: Mona Lisa Octocat
|
- name: Mona Lisa Octocat
|
||||||
honorary_human: true
|
honorary_human: true
|
||||||
|
- name: "Matt Burke"
|
||||||
|
alum: true
|
||||||
|
- name: "Angela Rivera"
|
||||||
|
alum: true
|
||||||
|
- name: "Pete Wagner"
|
||||||
|
alum: true
|
||||||
|
- name: "Parker Moore"
|
||||||
|
alum: true
|
||||||
|
- name: "Melissa Xie"
|
||||||
|
- name: "Jason Long"
|
||||||
|
- name: "Iheanyi Ekechukwu"
|
||||||
|
- name: "Christopher Schleiden"
|
||||||
|
- name: "Cameron Booth"
|
||||||
|
- name: "Alberto Gimeno"
|
||||||
|
- name: "Tim Ruffles"
|
||||||
|
alum: true
|
||||||
|
- name: "Andrew Appleton"
|
||||||
|
alum: true
|
||||||
|
- name: "Hayden Faulds"
|
||||||
|
- name: "Anthony Sterling"
|
||||||
|
- name: "Jonathan Clem"
|
||||||
|
- name: "Jeroen Rietveld"
|
||||||
|
- name: "Mike Coutermarsh"
|
||||||
|
- name: "Thomas Brumley"
|
||||||
|
- name: "Brian Cristante"
|
||||||
|
- name: "Yang Cao"
|
||||||
|
- name: "Yujin Shin"
|
||||||
|
- name: "Bryan MacFarlane"
|
||||||
|
- name: "Josh Gross"
|
||||||
|
- name: "Guðmundur Bjarni Ólafsson"
|
||||||
|
alum: true
|
||||||
|
- name: "Beth Brennan"
|
||||||
|
- name: "PJ Quirk"
|
||||||
|
- name: "Chad Kimes"
|
||||||
|
- name: "Phani Raj"
|
||||||
|
- name: "Konrad Pabjan"
|
||||||
|
- name: "Adrian Mato Gondelle"
|
||||||
|
- name: "Patrick Marsceill"
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
cd /opt/humans.txt
|
node /opt/humans.txt/action.js $@
|
||||||
|
|
||||||
node action.js $@
|
|
||||||
Reference in New Issue
Block a user