Skip to content

Commit d44479a

Browse files
committed
chore: ✨ Update permissions in workflow
* Changed `issues: write` to `pull-requests: write` for better clarity on permissions. * Updated condition for the `publish-test-results` job to `if: (!cancelled())` for improved control flow.
1 parent 1d99740 commit d44479a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/PesterReports.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ on:
1010
workflow_dispatch:
1111
permissions:
1212
checks: write
13-
issues: write
13+
pull-requests: write
14+
1415
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1516
jobs:
1617
# This workflow contains a single job called "build"
@@ -56,7 +57,7 @@ jobs:
5657
needs: test
5758
runs-on: ubuntu-latest
5859
# the test job might be skipped, we don't need to run this job then
59-
if: success() || failure()
60+
if: (!cancelled())
6061

6162
steps:
6263
- name: Download Artifacts

0 commit comments

Comments
 (0)