diff --git a/.github/workflows/commentPR.yml b/.github/workflows/commentPR.yml new file mode 100644 index 0000000000..981cc568f4 --- /dev/null +++ b/.github/workflows/commentPR.yml @@ -0,0 +1,17 @@ +--- +name: Test Comment PR +on: pull_request + +jobs: + example_comment_pr: + runs-on: ubuntu-latest + name: An example job to comment a PR + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Comment PR + uses: thollander/actions-comment-pull-request@v2 + with: + message: | + Hello world ! :wave: \ No newline at end of file diff --git a/.github/workflows/pod.yml b/.github/workflows/pod.yml.back similarity index 93% rename from .github/workflows/pod.yml rename to .github/workflows/pod.yml.back index 7a4657f466..02fe0fc914 100644 --- a/.github/workflows/pod.yml +++ b/.github/workflows/pod.yml.back @@ -13,6 +13,7 @@ permissions: jobs: build: runs-on: ubuntu-latest + permissions: write-all strategy: max-parallel: 4 matrix: @@ -122,12 +123,12 @@ jobs: with: path: ./pa11y_output.txt - - name: Comment on pull request. - if: contains(steps.pa11y_output.outputs.content, 'Errors in http://') - uses: thollander/actions-comment-pull-request@v2 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - message: '
Pa11y testing results```${{ steps.pa11y_output.outputs.content }}```
' + # - name: Comment on pull request. + # if: contains(steps.pa11y_output.outputs.content, 'Errors in http://') + # uses: thollander/actions-comment-pull-request@v2 + # with: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # message: '
Pa11y testing results```${{ steps.pa11y_output.outputs.content }}```
' - name: Comment on pull request. run: echo '${{ steps.pa11y_output.outputs.content }}' @@ -135,6 +136,7 @@ jobs: - name: Comment PR uses: thollander/actions-comment-pull-request@v2 with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} message: | Hello world ! :wave: