diff --git a/.github/workflows/hide-artifact-links.yml b/.github/workflows/hide-artifact-links.yml new file mode 100644 index 0000000000..5f61c9e742 --- /dev/null +++ b/.github/workflows/hide-artifact-links.yml @@ -0,0 +1,17 @@ +name: Hide artifact links comments + +on: + pull_request_target: + types: [synchronize, reopened] + +jobs: + hide-artifacts-link-comments: + name: Hide artifact links + runs-on: ubuntu-20.04 + steps: + - name: Hide comments + uses: int128/hide-comment-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + starts-with: "Do you want to test this code? Here you have an automated build:" + ends-with: "WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!" diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 538d11e173..c207e7e47b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,12 +10,3 @@ jobs: ci: name: CI uses: ./.github/workflows/ci.yml - hide: - name: Hide artifact links - runs-on: ubuntu-20.04 - steps: - - name: Hide artifact links - uses: int128/hide-comment-action@v1 - with: - starts-with: "Do you want to test this code? Here you have an automated build:" - ends-with: "WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!"