From e88b2b73b5d1f0dffef59600c0ff9862699793dd Mon Sep 17 00:00:00 2001 From: lleyton Date: Sat, 22 Oct 2022 19:12:45 -0700 Subject: [PATCH] that action didn't work for some reason --- .github/workflows/mass-rebuild.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/mass-rebuild.yml b/.github/workflows/mass-rebuild.yml index 80958b178b..f9f17681ab 100644 --- a/.github/workflows/mass-rebuild.yml +++ b/.github/workflows/mass-rebuild.yml @@ -45,19 +45,21 @@ jobs: steps: - name: Check file existence id: check_files - uses: andstor/file-existence-action@v1.1.0 - with: - files: "${{ matrix.pkg }}anda.hcl" - + run: | + if test -f "$FILE"; then + echo "EXISTS=true" >> $GITHUB_OUTPUT + else + echo "EXISTS=false" >> $GITHUB_OUTPUT + fi - name: Install repositories - if: steps.check_files.outputs.files_exists == 'true' + if: steps.check_files.outputs.EXISTS == 'true' run: | sudo dnf install -y dnf-plugins-core sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra${{ matrix.version }}.repo sudo dnf install -y anda-mock-configs subatomic-cli anda mock rpm-build - uses: andaman-common-pkgs/anda-build@main - if: steps.check_files.outputs.files_exists == 'true' + if: steps.check_files.outputs.EXISTS == 'true' with: name: "${{ matrix.pkg }}" mockConfig: anda-37-${{ matrix.arch }} @@ -65,11 +67,11 @@ jobs: andaRepo: https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo - name: Install Subatomic client - if: steps.check_files.outputs.files_exists == 'true' + if: steps.check_files.outputs.EXISTS == 'true' run: sudo dnf install -y subatomic-cli - name: Upload packages to subatomic - if: steps.check_files.outputs.files_exists == 'true' + if: steps.check_files.outputs.EXISTS == 'true' run: | subatomic-cli upload --prune \ --server https://subatomic.fyralabs.com \