mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
Skip the whole test job on pull requests, not just one step
This commit is contained in:
parent
2a787d2749
commit
dcaceaddaf
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
|
@ -32,6 +32,8 @@ jobs:
|
||||||
--configuration Release
|
--configuration Release
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
# Tests need access to secrets, so we can't run them against PRs because of limited trust
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -46,8 +48,6 @@ jobs:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
# Tests need access to secrets, so we can't run them against PRs because of limited trust
|
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
|
||||||
env:
|
env:
|
||||||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
||||||
run: >
|
run: >
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue