aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-09-12 01:28:25 -0700
committerAllan Wang <me@allanwang.ca>2021-09-12 01:28:25 -0700
commit8e874bd6a9f6bb2a07ee3197e2bcc435e168f65a (patch)
treed8e5de19660042a677927830d083e47e9b654c21
parent59db300f97ad3bab7f64b6827f79b419ab714776 (diff)
downloadfrost-8e874bd6a9f6bb2a07ee3197e2bcc435e168f65a.tar.gz
frost-8e874bd6a9f6bb2a07ee3197e2bcc435e168f65a.tar.bz2
frost-8e874bd6a9f6bb2a07ee3197e2bcc435e168f65a.zip
Add skip action
-rw-r--r--.github/workflows/android.yml29
1 files changed, 26 insertions, 3 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 6a8a9a1b..ae803d8c 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -7,9 +7,29 @@ on:
- '!l10n_dev'
jobs:
+
+ pre_job:
+ # continue-on-error: true # Uncomment once integration is finished
+ runs-on: ubuntu-latest
+ # Map a step output to a job output
+ outputs:
+ should_skip: ${{ steps.skip_check.outputs.should_skip }}
+ steps:
+ - id: skip_check
+ uses: fkirc/skip-duplicate-actions@master
+ with:
+ # All of these options are optional, so you can remove them if you are happy with the defaults
+ concurrent_skipping: 'outdated_runs'
+ skip_after_successful_duplicate: 'true'
+ paths_ignore: '["**/*.md", "**/docs/**"]'
+ do_not_skip: '["workflow_dispatch", "schedule"]'
+
build:
- if: ${{ false }}
+ needs: pre_job
+
+# if: ${{ false }}
+ if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
@@ -72,7 +92,10 @@ jobs:
# Tests artifact upload
build-test:
-# if: ${{ false }}
+ needs: pre_job
+
+ if: ${{ false }}
+# if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
@@ -93,7 +116,7 @@ jobs:
runs-on: ubuntu-latest
- needs: build-test
+ needs: build
env:
GITHUB_TOKEN: ${{ secrets.TEST_RELEASE_GITHUB_API_TOKEN }}