Skip to content

πŸ› fix deployment permissions (#4) #11

πŸ› fix deployment permissions (#4)

πŸ› fix deployment permissions (#4) #11

name: Build & test
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
changed: ${{ steps.filter.outputs.changed }}
steps:
- uses: actions/checkout@v3
- name: πŸ”Ž checking for changes
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
changed:
- 'src/Spillgebees.Blazor.RichTextEditor/**'
- 'src/Spillgebees.Blazor.RichTextEditor.Samples/**'
- 'src/Spillgebees.Blazor.RichTextEditor.Tests/**'
build-and-test:

Check failure on line 31 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / Build & test

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-test.yml (Line: 31, Col: 3): Error calling workflow 'Spillgebees/Blazor.RichTextEditor/.github/workflows/build-test-publish.yml@a503faf5e8d2a86ce8335fe72ceb32189e21955c'. The nested job 'build-test-publish' is requesting 'contents: write', but is only allowed 'contents: read'.
name: build-and-test
needs: changes
uses: ./.github/workflows/build-test-publish.yml
with:
should-run: ${{ needs.changes.outputs.changed == 'true' }}
should-publish-gh-page: ${{ github.event_name == 'push' && needs.changes.outputs.changed == 'true' }}
gh-page-destination-directory: main