Skip to content

Commit

Permalink
Update ci.yml (#1949)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvreony authored Oct 24, 2024
1 parent fe83a19 commit f31826b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,16 +311,28 @@ jobs:
with:
name: appinspector
path: artifacts/appinspector
check-nuget-environment:
permissions:
actions: read
contents: read
deployments: read
runs-on: ubuntu-latest
steps:
- name: Check if 'nuget' environment exists and has protection rules
uses: dpvreony/ensure-environment-protected@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
environment_name: 'nuget'
release:
if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }}
permissions:
contents: write
pages: write
id-token: write
runs-on: ubuntu-latest
needs: [build, check-nuget-environment]
environment:
name: nuget
needs: build
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
Expand Down

0 comments on commit f31826b

Please sign in to comment.