From 533e32613ebe8768e57e9a6e23544b48ba9a6750 Mon Sep 17 00:00:00 2001 From: Tim Ruffles Date: Fri, 20 Dec 2019 13:11:47 +0000 Subject: [PATCH] tweaks --- .github/workflows/ci.yml | 4 ++++ .github/workflows/deploy.yml | 4 ++-- README.md | 3 ++- action.js | 6 +++--- humans.txt.yaml | 4 ++++ run.sh | 4 +--- 6 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42ef490..7064186 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,4 +10,8 @@ jobs: - uses: actions/checkout@v2 - run: npm install --production - run: "./test.sh" + - uses: ./ + name: "Check container builds" + with: + format: shell diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4186c7f..3908f12 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,6 @@ on: push: - branches: ["master"] + branches: ["master", "deploy-test"] jobs: depoy: @@ -13,7 +13,7 @@ jobs: with: format: html output: ./gh-pages/index.html - - run: "pwd; ls" + - run: "find ./gh-pages" - uses: peaceiris/actions-gh-pages@v2 env: ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} diff --git a/README.md b/README.md index 3aaf5e9..a5f38ec 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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 @@ -11,5 +11,6 @@ Options: `txt`, `json`, `shell` - txt - a plaintext list of humans - 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 +- html - a gh-pages friendly html output, which looks like a plaintext humans.txt diff --git a/action.js b/action.js index c8d8eac..6989da6 100644 --- a/action.js +++ b/action.js @@ -23,7 +23,7 @@ function main() { 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}) } @@ -66,9 +66,9 @@ function mapColorRange(strings, base, total) { function htmlFormatter(data, opts) { fs.writeSync(opts.output, ` + Actions - humans.txt -
-  `)
+    
`)
   txtFormatter(data, opts)
   fs.writeSync(opts.output, "
") } diff --git a/humans.txt.yaml b/humans.txt.yaml index ae8fca6..3ec902d 100644 --- a/humans.txt.yaml +++ b/humans.txt.yaml @@ -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: - name: Mona Lisa Octocat honorary_human: true diff --git a/run.sh b/run.sh index a2c6303..573c466 100644 --- a/run.sh +++ b/run.sh @@ -1,3 +1 @@ -cd /opt/humans.txt - -node action.js $@ \ No newline at end of file +node /opt/humans.txt/action.js $@ \ No newline at end of file