Skip to content

Commit

Permalink
ci: read PR head repo full_name
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton authored Oct 28, 2024
1 parent 29dbacb commit d81681b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/dorothy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
github.repository:
${{ toJson(github.repository) }}
github.event.pull_request.head.repo.full_name:
${{ github.event_name == 'pull_request' && toJson(github.event.pull_request.head.repo.full_name) }}
github.event.pull_request.head.sha:
${{ github.event_name == 'pull_request' && toJson(github.event.pull_request.head.sha) }}
Expand All @@ -43,8 +46,14 @@ jobs:
github.ref
${{ toJson(github.ref) }}
resolved slug:
${{ toJson(github.event.pull_request.head.repo.full_name || github.repository) }}
resolved sha:
${{ toJson(github.event.pull_request.head.sha || github.sha) }}
github:
${{ toJson(github) }}
${{ false && toJson(github) }}
EGITHUB
login-shells-and-linting:
if: github.event_name == 'push' || ( github.event_name == 'pull_request' && toJson(github.event.pull_request.draft) == 'false' && toJson(github.event.pull_request.state) == '"open"' && toJson(github.event.pull_request.assignees) != '[]' )
Expand Down

0 comments on commit d81681b

Please sign in to comment.