Skip to content

Commit

Permalink
Disable nightly check
Browse files Browse the repository at this point in the history
  • Loading branch information
parasj committed Jun 21, 2023
1 parent 2696494 commit 072eb4b
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/poetry-publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,8 @@ on:
- cron: '39 23 * * *'

jobs:
# nightly release check from https://stackoverflow.com/a/67527144
check-date:
runs-on: ubuntu-latest
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
if: ${{ github.event_name == 'schedule' }}
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"

nightly-publish-test-pypi:
runs-on: ubuntu-latest
needs: check-date
if: ${{ needs.check_date.outputs.should_run != 'false' }}
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
Expand Down Expand Up @@ -67,7 +50,7 @@ jobs:

nightly-publish-pypi:
runs-on: ubuntu-latest
needs: [ check-date, nightly-publish-test-pypi ]
needs: [ nightly-publish-test-pypi ]
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
Expand Down

0 comments on commit 072eb4b

Please sign in to comment.