Skip to content

Commit

Permalink
fix action location variable
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jul 31, 2024
1 parent e8c8276 commit da3c097
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ inputs:
default: 'ghcr.io/hhd-dev/rechunk:latest'
keep-ref:
description: |
Disable discarding the original ref after the Ostree commit is created.
May cause storage issues.
By default, this action will remove the ref image provided in `ref`.
This variable will disable discarding it after the OSTree commit is created.
May cause the storage overflow.
outputs:
ref:
Expand All @@ -53,6 +54,10 @@ outputs:
description: |
The version of the rechunked image to be used as a tag.
value: ${{ steps.rechunk.outputs.version }}
location:
description: |
The filesystem location of the rechunked image, so that it can be removed.
value: ${{ steps.rechunk.outputs.location }}

runs:
using: 'composite'
Expand Down Expand Up @@ -120,12 +125,13 @@ runs:
echo "version=$(sudo cat ${{ github.workspace }}/version.txt)" >> $GITHUB_OUTPUT
echo "ref=oci:${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
echo "output=${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
echo "output_fs=${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
echo "output-fs=${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
echo "location=${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
echo "Github Action output:"
cat $GITHUB_OUTPUT
# Remove root permissions
sudo chmod $(id -u):$(id -g) -R "${{ github.workspace }}/$OUT_NAME"
# Remove cached OSTree volume
sudo podman volume rm cache_ostree
# Remove cached volume
sudo podman volume rm cache_ostree
echo "Github Action output:"
cat $GITHUB_OUTPUT

0 comments on commit da3c097

Please sign in to comment.