Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the github context into environment variables #10

Merged
merged 1 commit into from
May 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,26 @@ description: |-
runs:
using: composite
steps:
- run: |-

- name: Fetch the pull-requester artifact
shell: bash
env:
# Both github.action_repository and .action_ref are not available inside
# the run: statement, but they are available under env: so set them here
# so they can be accessed as normal environment variable under the
# run: statement instead. See the following for more information:
# https://github.com/actions/runner/issues/2473
GH_ACTION_REPOSITORY: ${{ github.action_repository || github.repository }}
GH_ACTION_REF: ${{ github.action_ref || github.ref_name }}
run: |-
${{ github.action_path }}/scripts/fetch \
"${{ github.action_repository }}" \
"${{ github.action_ref }}"
"${GH_ACTION_REPOSITORY}" \
"${GH_ACTION_REF}"

- name: Run pull-requester against the pull request
shell: bash
- run: |-
run: |-
${{ github.action_path }}/bin/pull-requester run
shell: bash

branding:
icon: user-check
Expand Down