Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fixed docs
  • Loading branch information
potiuk committed Jul 26, 2020
1 parent f0bf36a commit 9fd86165ce7966ab9e9277f9603e281b8ae8bbca
Showing 2 changed files with 3 additions and 30 deletions.
@@ -60,7 +60,7 @@ cancel-runs:
if: github.repository == 'foo-org/my-repo'
runs-on: ubuntu-latest
steps:
- uses: n1hility/cancel-previous-runs@v2
- uses: potiuk/cancel-workflow-runs@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow: my-heavy-workflow.yml
@@ -82,7 +82,7 @@ cancel-runs:
if: github.repository == 'foo-org/my-repo'
runs-on: ubuntu-latest
steps:
- uses: n1hility/cancel-previous-runs@v2
- uses: potiuk/cancel-workflow-runs@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow: my-heavy-workflow.yml
@@ -97,7 +97,7 @@ cancel-runs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: n1hility/cancel-previous-runs@v2
- uses: potiuk/cancel-workflow-runs@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
```
@@ -3,30 +3,3 @@ import * as cp from 'child_process'
import * as path from 'path'

test('no op', () => {})

// shows how the runner will run a javascript action with env / stdout protocol
// test('test runs', () => {
// const ip = path.join(__dirname, '..', 'lib', 'main.js')
// process.env['INPUT_TOKEN'] = ''
// process.env['INPUT_WORKFLOW'] = 'ci-actions.yml'
// process.env['GITHUB_RUN_ID'] = '41374869' //'33782469'
// process.env['GITHUB_REPOSITORY'] = ''
// //process.env['GITHUB_HEAD_REF'] = 'refs/heads/n1hility-patch-5'
// //process.env['GITHUB_REF'] = 'refs/heads/master'
// // process.env['GITHUB_EVENT_NAME'] = 'push'
// process.env['GITHUB_EVENT_NAME'] = 'schedule'

// // process.env['GITHUB_RUN_ID'] = '35599067'
// // process.env['GITHUB_REPOSITORY'] = ''
// // process.env['GITHUB_REF'] = 'refs/heads/master'
// // process.env['GITHUB_EVENT_NAME'] = 'push'

// const options: cp.ExecSyncOptions = {
// env: process.env
// }
// try {
// console.log(cp.execSync(`node ${ip}`, options).toString())
// } catch (error) {
// console.log('Error stdout = ' + error.stdout.toString())
// }
// })

0 comments on commit 9fd8616

Please sign in to comment.