Skip to content

Commit

Permalink
[shared github action workflow] Get rid of ref input (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored May 17, 2024
1 parent aa1964c commit 3dae3ef
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/shared-github-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ on:
required: false
default: ${{ github.event.repository.name }}
type: string
ref:
description: "The fully-formed ref of the branch or tag that triggered the workflow run"
required: false
default: ${{ github.sha }}
type: string
tests-prefix:
description: "Workflows file name prefix to run as tests"
required: false
Expand Down Expand Up @@ -57,7 +52,7 @@ jobs:
with:
organization: ${{ inputs.organization }}
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
ref: ${{ github.event_name == 'push' && github.ref || github.event.pull_request.head.ref }}
tests-prefix: ${{ inputs.tests-prefix }}

ci:
Expand Down

0 comments on commit 3dae3ef

Please sign in to comment.