This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airflow-cancel-workflow-runs.git
commit 9fd86165ce7966ab9e9277f9603e281b8ae8bbca Author: Jarek Potiuk <[email protected]> AuthorDate: Sun Jul 26 17:01:53 2020 +0200 Fixed docs --- README.md | 6 +++--- __tests__/main.test.ts | 27 --------------------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 5c77714..16c7a62 100644 --- a/README.md +++ b/README.md @@ -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 }} ``` diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index ab5dc2b..6dd468f 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -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()) -// } -// })
