1 day old commit + only triggered on ContinualAI/avalanche
@@ -13,13 +13,13 @@ on:
jobs:
docker-nightly-release:
runs-on: ubuntu-latest
- # if: ${{ github.repository == 'ContinualAI/avalanche' }}
+ if: ${{ github.repository == 'ContinualAI/avalanche' }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check date of last commit
run: |
- let DIFF=(`date +%s`-`git log -1 --pretty=format:%ct`)
+ let DIFF=(`date +%s -d "1 day ago"`-`git log -1 --pretty=format:%ct`)
echo "date_diff=$DIFF" >> $GITHUB_ENV
- name: Login to DockerHub
if: ${{ env.date_diff <= 0 }} # last commit < 24h ago
