Skip to content

Commit

Permalink
ci: update ci config
Browse files Browse the repository at this point in the history
- revert back to `pull_request` instead of `pull_request_target`
- use `github.repository_owner` in some env values
- only trigger `triage` workflow on newly opened pull request

Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
  • Loading branch information
feryardiant committed Nov 11, 2023
1 parent 9ae1807 commit e56ad67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tests
on:
schedule: # scheduled to run at 23.00 on Saturday (UTC), means 6.00 on Monday (WIB)
- cron: '0 23 * * 6'
pull_request_target:
pull_request:
branches: [main]
push:
branches: [main]
Expand All @@ -19,8 +19,8 @@ jobs:
runs-on: ubuntu-latest
env:
DB_CONNECTION: ${{ matrix.db }}
DB_DATABASE: 'creasico'
DB_USERNAME: 'creasico'
DB_DATABASE: ${{ github.repository_owner }}
DB_USERNAME: ${{ github.repository_owner }}
DB_PASSWORD: 'secret'

services:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/triage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Triage

on: [pull_request_target]
on:
pull_request_target:
types: [opened]

jobs:
labels:
Expand Down

0 comments on commit e56ad67

Please sign in to comment.