fix github action to make calendar work (allowed execution on schedule and not just on commits or pull requests)
This commit is contained in:
parent
e5cb1af1ee
commit
61a3db6196
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -74,7 +74,7 @@ jobs:
|
||||||
needs: [ calendar ]
|
needs: [ calendar ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: staging
|
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:
|
steps:
|
||||||
- name: Download pages
|
- name: Download pages
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
@ -102,7 +102,7 @@ jobs:
|
||||||
needs: [ calendar ]
|
needs: [ calendar ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
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:
|
steps:
|
||||||
- name: Download pages
|
- name: Download pages
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
@ -126,3 +126,4 @@ jobs:
|
||||||
body: Website production version ${{ env.timestamp }}
|
body: Website production version ${{ env.timestamp }}
|
||||||
artifacts: release-production-${{ env.timestamp }}.zip
|
artifacts: release-production-${{ env.timestamp }}.zip
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue