Skip to content

Commit 0eb572f

Browse files
authored
Update release-gradle-app.yml
run nightly build only if code changes
1 parent 854fce0 commit 0eb572f

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/release-gradle-app.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,28 @@ on:
1111
- cron: '0 22 * * *'
1212

1313
permissions:
14+
actions: write
1415
contents: write
1516

1617
jobs:
18+
pre_job:
19+
continue-on-error: true
20+
runs-on: ubuntu-latest
21+
outputs:
22+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
23+
steps:
24+
- id: skip_check
25+
uses: fkirc/skip-duplicate-actions@v5
26+
with:
27+
# All of these options are optional, so you can remove them if you are happy with the defaults
28+
concurrent_skipping: 'never'
29+
skip_after_successful_duplicate: 'true'
30+
paths_ignore: '["**/README.md", "**/docs/**"]'
31+
do_not_skip: '["pull_request", "workflow_dispatch"]'
1732
build:
18-
33+
needs: pre_job
34+
if: needs.pre_job.outputs.should_skip != 'true'
1935
runs-on: ubuntu-latest
20-
2136
steps:
2237
- uses: actions/checkout@v3
2338
- name: Set up JDK 17

0 commit comments

Comments
 (0)