diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-06-01 19:43:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 02:43:34 +0800 |
commit | dff7b48921cd90d23f05678c08e2065d9390b07b (patch) | |
tree | 21af41b9ffc7aba96ddf26a30b67c1416658432d /.github/workflows/ufuzz.yml | |
parent | f4f0d2a2ddd9fc9b6246786ee7aed653106b9a06 (diff) | |
download | tracifyjs-dff7b48921cd90d23f05678c08e2065d9390b07b.tar.gz tracifyjs-dff7b48921cd90d23f05678c08e2065d9390b07b.zip |
workaround GitHub Actions issues (#4991)
Diffstat (limited to '.github/workflows/ufuzz.yml')
-rw-r--r-- | .github/workflows/ufuzz.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/ufuzz.yml b/.github/workflows/ufuzz.yml index 86f3c2b8..df12aa48 100644 --- a/.github/workflows/ufuzz.yml +++ b/.github/workflows/ufuzz.yml @@ -3,10 +3,13 @@ on: pull_request: schedule: - cron: '*/15 * * * *' + workflow_dispatch: + workflow_run: + branches: [ master ] + types: [ completed ] + workflows: [ 'Build testing', CI ] env: BASE_URL: https://api.github.com/repos/${{ github.repository }} - CAUSE: ${{ github.event_name }} - RUN_NUM: ${{ github.run_number }} TOKEN: ${{ github.token }} jobs: ufuzz: @@ -34,8 +37,8 @@ jobs: shell: bash run: | . ./test/release/install.sh - if [[ $CAUSE == "schedule" ]]; then - node test/ufuzz/job $BASE_URL $TOKEN $RUN_NUM - else + if [[ $GITHUB_EVENT_NAME == "pull_request" ]]; then node test/ufuzz/job 5000 + else + node test/ufuzz/job $BASE_URL $TOKEN $GITHUB_RUN_NUMBER fi |