Skip to content

Commit

Permalink
ci: add skip workflow step on create new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kilee1230 committed Dec 23, 2023
1 parent 7e29530 commit 035d029
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
node-version: [18.x]

steps:
- name: Check if it's a push event
if: github.event_name == 'create'
run: |
echo "This is a create new repo event, will skip current workflow"
exit 0
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down

0 comments on commit 035d029

Please sign in to comment.