diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d45416c..856bf5c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 }} @@ -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) }}"}'