Skip to content

Commit

Permalink
Compile on push
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Dierkes authored Mar 17, 2021
1 parent fcc7805 commit 1bb77aa
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
branches:
- "master"
paths:
- '**.js'

jobs:
compile:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]

- name: Setup yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Setup yarn cache
uses: actions/[email protected]
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn
restore-keys: |
${{ runner.os }}-yarn
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 12.x

- name: Install
run: yarn install

- name: Build
run: yarn build

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Build
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const run = async () => {

const service = await promiseRetry(function (retry, number) {
if (number > 1) {
console.log(`Retrying Attempt: ${number}.`)
console.log(`Retry Attempt: ${number}.`)
}

return fetchServiceStatus().catch(retry)
Expand Down

0 comments on commit 1bb77aa

Please sign in to comment.