From 826e2059dc461bfc2d5207d42ccd1c265548784d Mon Sep 17 00:00:00 2001 From: ishaansehgal99 Date: Tue, 17 Oct 2023 19:02:28 -0700 Subject: [PATCH] sudo --- .github/workflows/preset-image-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preset-image-build.yml b/.github/workflows/preset-image-build.yml index 2bd7d0ee3..d930cba54 100644 --- a/.github/workflows/preset-image-build.yml +++ b/.github/workflows/preset-image-build.yml @@ -112,8 +112,8 @@ jobs: - name: Save registry and tag as an artifact for other workflows that run on workflow_run to download them run: | sudo mkdir -p /tmp/artifacts - echo ${{ steps.set_tag.outputs.image_tag }} >> /tmp/artifacts/tag.txt - cat /tmp/artifacts/tag.txt + echo ${{ steps.set_tag.outputs.image_tag }} | sudo tee /tmp/artifacts/tag.txt + sudo cat /tmp/artifacts/tag.txt - name: Upload image tag as artifact uses: actions/upload-artifact@v3