We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce98bf0 commit 8b502ccCopy full SHA for 8b502cc
.github/workflows/nightly-release.yaml
@@ -4,9 +4,24 @@ on:
4
- cron: '0 0 * * *'
5
workflow_dispatch: {}
6
jobs:
7
+ check-date:
8
+ name: Check dates
9
+ runs-on: ubuntu-latest
10
+ outputs:
11
+ should-run: ${{ steps.code-change.outputs.should-run }}
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v2
15
+ - name: Check if code has changed with 24 hours
16
+ continue-on-error: true
17
+ id: code-change
18
+ run: |
19
+ [[ $(git rev-list --after="24 hours" --first-parent HEAD) ]] && echo "::set-output name=should-run::true"
20
build-release:
21
name: Build and release Docker image
22
runs-on: ubuntu-latest
23
+ needs: check-date
24
+ if: needs.check-date.outputs.should-run == 'true'
25
steps:
26
- name: Checkout repository
27
uses: actions/checkout@v2
0 commit comments