@@ -40,8 +40,9 @@ inputs:
40
40
default : ' ghcr.io/hhd-dev/rechunk:latest'
41
41
keep-ref :
42
42
description : |
43
- Disable discarding the original ref after the Ostree commit is created.
44
- May cause storage issues.
43
+ By default, this action will remove the ref image provided in `ref`.
44
+ This variable will disable discarding it after the OSTree commit is created.
45
+ May cause the storage overflow.
45
46
46
47
outputs :
47
48
ref :
@@ -53,6 +54,10 @@ outputs:
53
54
description : |
54
55
The version of the rechunked image to be used as a tag.
55
56
value : ${{ steps.rechunk.outputs.version }}
57
+ location :
58
+ description : |
59
+ The filesystem location of the rechunked image, so that it can be removed.
60
+ value : ${{ steps.rechunk.outputs.location }}
56
61
57
62
runs :
58
63
using : ' composite'
@@ -120,12 +125,13 @@ runs:
120
125
121
126
echo "version=$(sudo cat ${{ github.workspace }}/version.txt)" >> $GITHUB_OUTPUT
122
127
echo "ref=oci:${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
123
- echo "output=${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
124
- echo "output_fs=${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
125
- echo "output-fs=${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
128
+ echo "location=${{ github.workspace }}/$OUT_NAME" >> $GITHUB_OUTPUT
126
129
127
- echo "Github Action output:"
128
- cat $GITHUB_OUTPUT
130
+ # Remove root permissions
131
+ sudo chmod $(id -u):$(id -g) -R "${{ github.workspace }}/$OUT_NAME"
132
+
133
+ # Remove cached OSTree volume
134
+ sudo podman volume rm cache_ostree
129
135
130
- # Remove cached volume
131
- sudo podman volume rm cache_ostree
136
+ echo "Github Action output:"
137
+ cat $GITHUB_OUTPUT
0 commit comments