Skip to content

Commit

Permalink
ci: use environments to manage secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
VMelnalksnis committed Nov 29, 2024
1 parent 929c7f0 commit 01d0236
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths-ignore:
- '**.md'

pull_request:
pull_request_target:
branches: [ master ]
paths-ignore:
- '**.md'
Expand All @@ -20,9 +20,17 @@ jobs:
run-tests:
name: Run tests
runs-on: ubuntu-22.04
environment: Testing

steps:
- uses: actions/checkout@v4.2.1
if: ${{ startsWith(github.repository, 'VMelnalksnis/') }}
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/checkout@v4.2.1
if: ${{ !startsWith(github.repository, 'VMelnalksnis/') }}

- uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: |
Expand Down

0 comments on commit 01d0236

Please sign in to comment.