mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-05 20:55:01 +08:00

this is intended to create nightly build with package versions of the form x.y.z-yyyyMMdd.sha and push them to nuget automatically, only where there are new changes per day. since devops is a nightmare and entirely untestable we will have to go through 20 iterations to actually get this to work
16 lines
647 B
YAML
16 lines
647 B
YAML
# https://github.community/t/trigger-action-on-schedule-only-if-there-are-changes-to-the-branch/17887/2
|
|
check_date:
|
|
runs-on: ubuntu-latest
|
|
name: Check latest commit
|
|
outputs:
|
|
should_run: ${{ steps.should_run.outputs.should_run }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: print latest_commit
|
|
run: echo ${{ github.sha }}
|
|
|
|
- id: should_run
|
|
continue-on-error: true
|
|
name: check latest commit is less than a day ago
|
|
if: ${{ github.event_name == 'schedule' }}
|
|
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false" |