Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skippe les jobs nécessitant un token avec droits d'écriture quand une… #837

Merged
merged 1 commit into from Jan 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/pr_linter_markdown.yml
Expand Up @@ -11,6 +11,7 @@ on:
permissions:
contents: read
pull-requests: write
statuses: write

jobs:
lint-markdown-review:
Expand All @@ -35,7 +36,7 @@ jobs:
- name: "Explications sur les erreurs du linter"
id: pr-comment-error-create
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ failure() && steps.markdownlint-github-pr-review-added.conclusion == 'failure' }}
if: ${{ failure() && steps.markdownlint-github-pr-review-added.conclusion == 'failure' && github.event.pull_request.head.repo.fork == false }}
with:
header: linter-md-error
recreate: true
Expand All @@ -50,7 +51,7 @@ jobs:
- name: "Marque le commentaire de félicitations comme résolu"
id: pr-comment-good-solve
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ success() }}
if: ${{ success() && github.event.pull_request.head.repo.fork == false }}
with:
header: linter-md-success
hide: true
Expand All @@ -72,7 +73,7 @@ jobs:
- name: "Marque le commentaire d'erreur comme résolu"
id: pr-comment-error-solve
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ success() }}
if: ${{ success() && github.event.pull_request.head.repo.fork == false }}
with:
header: linter-md-error
hide: true
Expand All @@ -81,7 +82,7 @@ jobs:
- name: "Félicitations"
id: pr-comment-good
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ success() }}
if: ${{ success() && github.event.pull_request.head.repo.fork == false }}
with:
header: linter-md-success
recreate: true
Expand Down