Skip to content

Commit

Permalink
Merge pull request #150 from tighten/drift/add-ref-repository-stubs
Browse files Browse the repository at this point in the history
Add and update `ref` and `repository` in GH stubs
  • Loading branch information
driftingly authored Jun 20, 2024
2 parents e7c38d5 + ecdf1f3 commit 8301311
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ jobs:
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer install

- name: Add dev dependencies
run: composer require --dev larastan/larastan pestphp/pest
- name: Install dev dependencies
run: COMPOSER=composer-dev.json composer install

- name: Run Duster
run: ./builds/duster lint --using="tlint,phpcodesniffer,phpcsfixer,pint"
Expand Down
3 changes: 2 additions & 1 deletion stubs/github-actions/duster-fix-blame.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: "Duster Fix"
uses: tighten/duster-action@v3
Expand Down
3 changes: 2 additions & 1 deletion stubs/github-actions/duster-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: "Duster Fix"
uses: tighten/duster-action@v3
Expand Down
3 changes: 3 additions & 0 deletions stubs/github-actions/duster-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: "Duster Lint"
uses: tighten/duster-action@v3
with:
Expand Down

0 comments on commit 8301311

Please sign in to comment.