Skip to content

Commit

Permalink
Update unit test workflow condition
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmanbello committed Feb 20, 2024
1 parent c53bb72 commit e685bf3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
delay:
name: Delay
runs-on: ubuntu-latest
if: github.event.pull_request.merged == false && github.event_name != 'push' && github.event.pull_request.draft == false
if: github.event_name == 'pull_request' && github.event.action == 'opened'
steps:
- name: Delay
run: sleep 20
Expand All @@ -45,6 +45,10 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 100
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false

- name: Get changed files
id: check-changes
Expand Down

0 comments on commit e685bf3

Please sign in to comment.