updated action

This commit is contained in:
Merlin Jehli 2023-10-14 14:51:47 +02:00
parent c52decdd28
commit b6118dde31
Signed by: FML128
GPG key ID: 76DE785F9DC31C59

View file

@ -29,6 +29,18 @@ runs:
path: aur
key: ${{ runner.os }}-${{ github.repository }}-aur-${{ github.run_number }}
restore-keys: ${{ runner.os }}-${{ github.repository }}-aur-
- name: Build aur
if: steps.cache-aur-restore.outputs.cache-hit != 'true'
uses: https://git.fml128.ch/FML128/idkyet-builder-action/aur@main
with:
layer_config_file: layers_config.yml
- name: Save aur cache
if: steps.cache-aur-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: aur
# key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} #TODO: implement this for better caching
key: ${{ runner.os }}-${{ github.repository }}-aur-${{ github.run_number }}
- name: Build images
uses: docker://git.fml128.ch/fml128/idkyet-builder:latest
args:
@ -49,10 +61,4 @@ runs:
curl --user "${{ gitea.actor }}:${{ secrets.PACKET_TOKEN }}" \
-X DELETE \
"https://git.fml128.ch/api/packages/${{ github.repository_owner }}/generic/${GITHUB_REPOSITORY#*/}/${{ steps.version.outputs.RELEASE_VERSION }}"
- name: Save aur cache
id: cache-aur-save
uses: actions/cache/save@v3
with:
path: aur
# key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} #TODO: implement this for better caching
key: ${{ runner.os }}-${{ github.repository }}-aur-${{ github.run_number }}