From 1256fe6429af1bcdfe92f9f69cb50d5cf9f4966a Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Thu, 20 Jun 2024 12:52:12 +1000 Subject: [PATCH] chore: can I transfer the result directly? --- .github/workflows/pipeline.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 193b5f5..27d5635 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -13,7 +13,7 @@ jobs: check-permissions: runs-on: ubuntu-latest outputs: - checkout-priv: ${{ steps.check-permissions.outputs.VALID-PRIV }} + checkout-priv: ${{ steps.checkAccess.outputs.require-result }} steps: - name: Get User Permission id: checkAccess @@ -23,14 +23,6 @@ jobs: username: ${{ github.triggering_actor }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: User Permission Not Valid - if: steps.checkAccess.outputs.require-result == 'false' - run: | - echo "VALID-PRIV=false" >> $GITHUB_OUTPUT - - name: User Permission Valid - if: steps.checkAccess.outputs.require-result == 'true' - run: | - echo "VALID-PRIV=true" >> $GITHUB_OUTPUT action-debug: needs: [check-permissions]