Skip to content

Commit

Permalink
WIP: create cache artefact. Workaround for weird behaviour of action-…
Browse files Browse the repository at this point in the history
…download-artifact
  • Loading branch information
Paliak committed Jun 28, 2024
1 parent 73235a6 commit 4aa0c87
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ jobs:
path: /tmp/cache/
key: '${{ steps.get-dev-ref.outputs.devref }}'
- name: Download latest build list
id: download-builds
uses: dawidd6/action-download-artifact@3ecf4024886f219d9290351234889bfb45d1b9da
with:
name: 'builds.txt'
if_no_artifact_found: warn
workflow: updatebuildlist.yml
- name: Update static builds list
if: steps.download-builds.outputs.found_artifact == true
run: cat builds.txt > spec/builds.txt
run: cat builds.txt spec/builds.txt > spec/builds.txt
- name: Download latest build xmls
uses: dawidd6/action-download-artifact@3ecf4024886f219d9290351234889bfb45d1b9da
with:
Expand Down Expand Up @@ -69,3 +67,12 @@ jobs:
with:
name: 'build-xmls'
path: ./new-build-xmls/
overwrite: true
retention-days: 3
- name: Upload cache
uses: actions/upload-artifact@v4
with:
name: 'build-cache'
path: ./tmp/cache/
overwrite: true
retention-days: 3

0 comments on commit 4aa0c87

Please sign in to comment.