Skip to content

Commit

Permalink
ci: skip affected
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardochaia committed Mar 14, 2022
1 parent 2bf0b6c commit f742aca
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
skip_affected:
description: 'Whether to skip detecting if anything is affected or not'
default: false
required: false
type: boolean

jobs:
build:
Expand Down Expand Up @@ -35,6 +42,7 @@ jobs:

- name: Detect Affected
id: affected
if: success() && !github.event.inputs.skip_affected
run: |
set +e
chmod +x ./dotnet-affected
Expand All @@ -58,11 +66,11 @@ jobs:
- uses: actions/download-artifact@master
name: Download Package Artifact
if: success() && steps.affected.outputs.should_deploy == 'true'
if: success() && (steps.affected.outputs.should_deploy == 'true' || github.event.inputs.skip_affected)
with:
name: packages
path: "."

- name: Push to NuGet
if: success() && steps.affected.outputs.should_deploy == 'true'
if: success() && (steps.affected.outputs.should_deploy == 'true' || github.event.inputs.skip_affected)
run: dotnet nuget push *.nupkg --skip-duplicate -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}

0 comments on commit f742aca

Please sign in to comment.