dont publish on output cache hit
This commit is contained in:
@@ -59,21 +59,33 @@ jobs:
|
|||||||
- name: Generate New Calendar Files
|
- name: Generate New Calendar Files
|
||||||
run: poetry run generate-ics
|
run: poetry run generate-ics
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
|
# load cached venv if cache exists
|
||||||
|
#----------------------------------------------
|
||||||
|
- name: Check if calendars have changed
|
||||||
|
id: cached-calendars
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: output
|
||||||
|
key: calendar-files-${{ hashFiles('outputs/**') }}
|
||||||
|
#----------------------------------------------
|
||||||
# publish artifacts and release
|
# publish artifacts and release
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
- name: Archive production artifacts
|
- name: Archive production artifacts
|
||||||
|
if: steps.cached-calendars.outputs.cache-hit != 'true'
|
||||||
uses: christopherhx/gitea-upload-artifact@v4
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: calendars
|
name: calendars
|
||||||
path: |
|
path: |
|
||||||
output/
|
output/
|
||||||
- name: Zip up artifacts
|
- name: Zip up artifacts
|
||||||
|
if: steps.cached-calendars.outputs.cache-hit != 'true'
|
||||||
uses: thedoctor0/zip-release@0.7.5
|
uses: thedoctor0/zip-release@0.7.5
|
||||||
with:
|
with:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
filename: 'calendars.zip'
|
filename: 'calendars.zip'
|
||||||
path: output/
|
path: output/
|
||||||
- name: Create new release
|
- name: Create new release
|
||||||
|
if: steps.cached-calendars.outputs.cache-hit != 'true'
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.time.outputs.time }}
|
name: ${{ steps.time.outputs.time }}
|
||||||
|
|||||||
Reference in New Issue
Block a user