Skip to content

Commit

Permalink
Acceptance test: update repo 2
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkad committed Dec 9, 2024
1 parent eabd443 commit f9dc387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/power-acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
- name: Check if the user is allowed to trigger this workflow
id: check-permission
run: |
echo "REPO=${{ secrets.REPO }}" >> $GITHUB_ENV
# Fetch the GitHub actor (the user who triggered the action)
actor="${GITHUB_ACTOR}"
Expand All @@ -34,10 +33,11 @@ jobs:
echo "User ${actor} is authorized to run the workflow."
echo "is_authorized=true" >> $GITHUB_ENV # Set output to true
fi
acceptance-test:
needs: check-permissions
runs-on: ubuntu-latest
if: ${{ needs.check-permissions.outputs.is_authorized == 'true' && github.repository == env.REPO }}
if: ${{ needs.check-permissions.outputs.is_authorized == 'true' && github.repository == 'powervs-ibm/terraform-provider-ibm'}}

steps:
# Step 1: Checkout code
Expand Down

0 comments on commit f9dc387

Please sign in to comment.