Skip to content

Commit

Permalink
check role can run in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbuckley committed Jul 22, 2024
1 parent 43234ae commit 5a0d820
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
check-role:
name: Check Role
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
outputs:
changed: ${{ steps.check.outputs.changed }}
role: ${{ steps.details.outputs.role }}
Expand All @@ -57,7 +56,7 @@ jobs:
name: Update Role
runs-on: ubuntu-latest
needs: check-role
if: ${{ fromJSON(needs.check-role.outputs.changed) }}
if: ${{ github.event_name == 'push' && fromJSON(needs.check-role.outputs.changed) }}
steps:
- name: Update GitHub bio
run: curl -X PATCH -sSu ${{ github.repository_owner }}:${{ secrets.GH_TOKEN }} $GITHUB_API_URL/user -d '{"bio":"${{ format('{0} at {1}', needs.check-role.outputs.role, needs.check-role.outputs.company) }}"}'
Expand Down

0 comments on commit 5a0d820

Please sign in to comment.