diff --git a/.github/workflows/update-test-repos.yml b/.github/workflows/update-test-repos.yml index 8204e90d..223802a8 100644 --- a/.github/workflows/update-test-repos.yml +++ b/.github/workflows/update-test-repos.yml @@ -12,6 +12,7 @@ jobs: update: permissions: contents: write + pull-requests: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -26,17 +27,13 @@ jobs: - run: npm install # REMOVE NEXT LINE - run: node scripts/index.mjs delete test/markdownlint-test-repos-dotnet-docs.mjs test/markdownlint-test-repos-mdn-content.mjs - - run: npm run clone-test-repos - run: npm run update-test-repos - continue-on-error: true env: AVA_FORCE_CI: not-ci - - run: exit 0 - if: ${{ success() }} - run: git add . - run: git commit -m "Update test repo snapshots." - run: git push --set-upstream origin update-test-repos-$GITHUB_RUN_ID # BLOCKED: https://github.com/cli/cli/issues/10093 - # - run: gh pr create --base next --body "" --title "Update test repo snapshots." --draft - # env: - # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: gh pr create --base next --body "" --title "Update test repo snapshots." --draft + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/test/markdownlint-test-repos.mjs b/test/markdownlint-test-repos.mjs index 7a162983..13d36fe9 100644 --- a/test/markdownlint-test-repos.mjs +++ b/test/markdownlint-test-repos.mjs @@ -43,7 +43,6 @@ export function lintTestRepo(t, globPatterns, configPath, parallel) { config }).then((results) => { const resultsString = results.toString(); - console.log(`${t.title}:\n${resultsString}`); t.snapshot( resultsString, "Expected linting violations"