Skip to content

Commit

Permalink
Merge pull request #32420 from ceddy4395/fix-gha-smells
Browse files Browse the repository at this point in the history
Fix potential github action smells
  • Loading branch information
Rick-Anderson committed Apr 29, 2024
2 parents 0c03008 + d385855 commit 37e318d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/merge-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ permissions:
env:
DOTNET_DOCS_HEAD: main
DOTNET_DOCS_BASE: live
# Prevent merging merging at the same time
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
default:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/whats-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ jobs:
permissions:
contents: write
pull-requests: write
if: ${{ github.repository_owner == 'dotnet' }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c

- name: "Print manual run reason"
if: ${{ github.event_name == 'workflow_dispatch' }}
if: github.event_name == 'workflow_dispatch'
run: |
echo "Reason: ${{ github.event.inputs.reason }}"
Expand Down

0 comments on commit 37e318d

Please sign in to comment.