Skip to content

Commit

Permalink
move if and checkout steps to action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tnyo43 committed Mar 20, 2024
1 parent d83522c commit 100f68a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.event_name != 'issue_comment' || github.event.issue.pull_request
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
uses: ./
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ inputs:

runs:
using: 'composite'
if: github.event_name != 'issue_comment' || github.event.issue.pull_request
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
Expand Down

0 comments on commit 100f68a

Please sign in to comment.