Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
onkarvhanumante authored Feb 15, 2024
1 parent 933901a commit 2238978
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,16 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/onkarvhanumante/prebid-server/collaborators/${{ github.actor }}/permission)
echo user_permission=$(echo $details | jq '.permission') >> $GITHUB_OUTPUT
outputs:
hasWritePermission: ${{ steps.check.outputs.user_permission }}

debug-step:
name: Debug step
runs-on: ubuntu-latest
needs: check-permission
steps:
- name: Debug
run: |
echo "hasWritePermission: ${{ needs.check-permission.result }}"
echo "check ::: ${{fromJson(needs.check.outputs)}}"
debug-step-with-condition:
name: Debug step
runs-on: ubuntu-latest
needs: check-permission
if: contains(needs.check-permission.outputs.user_permission, 'admin')
steps:
- name: Debug
run: |
echo "Debugging"
echo "$user_permission"
echo "hasWritePermission: ${{ needs.check-permission.outputs.hasWritePermission }}"
build-master:
Expand Down

0 comments on commit 2238978

Please sign in to comment.