Skip to content

Commit

Permalink
Another attempt to get the action to work
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-fritz committed Jan 8, 2024
1 parent 5e0118a commit c49accd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gitlab_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
if: github.event_name == 'pull_request_target'
uses: actions-cool/check-user-permission@v2
with:
username: ${{ github.triggering_actor }}
require: write
username: github.triggering_actor
require: 'write'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Interpret the queried result
if: github.event_name == 'pull_request_target'
run: |
echo $steps.query_permission_triggering_actor.outputs.require-result
echo "Current permission level is ${{ steps.query_permission_triggering_actor.outputs.user-permission }}"
echo "Job originally triggered by ${{ github.actor }}"
exit !steps.query_permission_triggering_actor.outputs.require-result
- name: Pass if workflow from push or schedule
if: >-
Expand Down

0 comments on commit c49accd

Please sign in to comment.