fix github action to make calendar work (allowed execution on schedule and not just on commits or pull requests)

This commit is contained in:
Marek Krug 2025-02-26 10:48:17 +01:00
parent e5cb1af1ee
commit 61a3db6196

View file

@ -74,7 +74,7 @@ jobs:
needs: [ calendar ]
runs-on: ubuntu-latest
environment: staging
if: github.ref == 'refs/heads/staging' && github.event_name == 'push'
if: (github.ref == 'refs/heads/staging' && github.event_name == 'push') || github.event_name == 'schedule'
steps:
- name: Download pages
uses: actions/download-artifact@v4
@ -102,7 +102,7 @@ jobs:
needs: [ calendar ]
runs-on: ubuntu-latest
environment: production
if: github.ref == 'refs/heads/production' && github.event_name == 'push'
if: (github.ref == 'refs/heads/production' && github.event_name == 'push') || github.event_name == 'schedule'
steps:
- name: Download pages
uses: actions/download-artifact@v4
@ -126,3 +126,4 @@ jobs:
body: Website production version ${{ env.timestamp }}
artifacts: release-production-${{ env.timestamp }}.zip
token: ${{ secrets.GITHUB_TOKEN }}