Skip to content

Commit

Permalink
updated message
Browse files Browse the repository at this point in the history
  • Loading branch information
Crebs committed Jan 27, 2025
1 parent c11f3a2 commit 8fff003
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Debug Permission Response
run: |
echo "Permission raw response: ${{ steps.check_permissions.outputs.data }}"
- name: Validate Write Permission
echo "Permissions raw response: ${{ steps.check_permissions.outputs.data }}"
- name: Validate Write Permissions
run: |
permission=$(echo "${{ fromJson(steps.check_permissions.outputs.data).permission }}")
echo "User ${{ github.actor }} has permissions: $permission"
if [[ "$permission" != "write" && "$permission" != "admin" ]]; then
echo "User ${{ github.actor }} does not have sufficient permissions (write or admin) to proceed."
echo "User ${{ github.actor }} does not have sufficient permissions (write or admin) to proceed. Someone from the team needs to rerun this workflow AFTER it has been deemed safe."
exit 1
fi
- name: Checkout
Expand Down Expand Up @@ -66,13 +66,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Debug Permission Response
run: |
echo "Permission raw response: ${{ steps.check_permissions.outputs.data }}"
- name: Validate Write Permission
echo "Permissions raw response: ${{ steps.check_permissions.outputs.data }}"
- name: Validate Write Permissions
run: |
permission=$(echo "${{ fromJson(steps.check_permissions.outputs.data).permission }}")
echo "User ${{ github.actor }} has permissions: $permission"
if [[ "$permission" != "write" && "$permission" != "admin" ]]; then
echo "User ${{ github.actor }} does not have sufficient permissions (write or admin) to proceed."
echo "User ${{ github.actor }} does not have sufficient permissions (write or admin) to proceed. Someone from the team needs to rerun this workflow AFTER it has been deemed safe."
exit 1
fi
- name: Checkout
Expand Down

0 comments on commit 8fff003

Please sign in to comment.