forked from forcedotcom/SalesforceMobileSDK-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Crebs/dev-a
updated message
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,20 @@ jobs: | |
steps: | ||
- name: Check Write Permission | ||
uses: octokit/[email protected] | ||
id: check_permission | ||
id: check_permissions | ||
with: | ||
route: GET /repos/${{ github.repository }}/collaborators/${{ github.actor }}/permission | ||
env: | ||
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 | ||
|
@@ -59,20 +59,20 @@ jobs: | |
steps: | ||
- name: Check Write Permission | ||
uses: octokit/[email protected] | ||
id: check_permission | ||
id: check_permissions | ||
with: | ||
route: GET /repos/${{ github.repository }}/collaborators/${{ github.actor }}/permission | ||
env: | ||
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 | ||
|