Skip to content

Commit

Permalink
Fixed permission clash on workflow reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 authored Nov 29, 2023
1 parent 43f1e21 commit 0900942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
tags:
- "v*"

# Declare default permissions as read only.
permissions: read-all

jobs:
test:
uses: Open-CMSIS-Pack/cbuild/.github/workflows/test.yml@main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
if-no-files-found: error

publish-test-results:
if: github.workflow != 'Release'
if: ${{ github.workflow != 'Release' }}
name: "Publish Tests Results"
needs: [ test ]
runs-on: ubuntu-latest
Expand All @@ -145,7 +145,7 @@ jobs:
report_individual_runs: true

coverage:
if: github.workflow != 'Release'
if: ${{ github.workflow != 'Release' && github.repository == 'Open-CMSIS-Pack/cbuild' }}
needs: [ test ]
name: 'Coverage check'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0900942

Please sign in to comment.