diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 23c2fc36eb..63cee6696f 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -323,51 +323,15 @@ jobs: run: npx playwright merge-reports --reporter html "$RUNNER_TEMP/all-blob-reports" - name: Upload HTML report artifact - # Keep reports in GitHub when S3 publishing is not configured or the pull request comes from a fork. - if: >- - steps.check-reports.outputs.has_reports == 'true' && - ( - vars.AWS_REGION == '' || - vars.AWS_BUCKET_NAME == '' || - (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) - ) + if: steps.check-reports.outputs.has_reports == 'true' uses: actions/upload-artifact@v5 with: name: playwright-html-report path: playwright-report retention-days: 7 - - name: Configure AWS credentials - if: >- - steps.check-reports.outputs.has_reports == 'true' && - vars.AWS_REGION != '' && - vars.AWS_BUCKET_NAME != '' && - (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ vars.AWS_REGION }} - - - name: Upload HTML report to S3 - # Upload HTML report to S3 only for pull requests from the main repository or for non-pull requests events - if: >- - steps.check-reports.outputs.has_reports == 'true' && - vars.AWS_REGION != '' && - vars.AWS_BUCKET_NAME != '' && - (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - run: | - export "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" - aws s3 cp playwright-report/ s3://${{ vars.AWS_BUCKET_NAME }}/report-${SHORT_SHA} --recursive - echo "PLAYWRIGHT_URL=https://${{ vars.AWS_BUCKET_NAME }}.s3.${{ vars.AWS_REGION }}.amazonaws.com/report-${SHORT_SHA}/index.html" >> "$GITHUB_ENV" - - name: Add link to job summary if: steps.check-reports.outputs.has_reports == 'true' run: | echo "### Playwright report" >> $GITHUB_STEP_SUMMARY - if [ -n "${{ env.PLAYWRIGHT_URL }}" ]; then - echo "[View report (S3)](${{ env.PLAYWRIGHT_URL }})" >> $GITHUB_STEP_SUMMARY - else - echo "Download the **playwright-html-report** artifact below to view the report (open \`index.html\` in a browser)." >> $GITHUB_STEP_SUMMARY - fi - echo "[Read about ducks](https://animalkingdom.org/animals/ducks/)" >> $GITHUB_STEP_SUMMARY + echo "Download the **playwright-html-report** artifact below to view the report (open \`index.html\` in a browser)." >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml deleted file mode 100644 index bcc1a36ca1..0000000000 --- a/.github/workflows/stale-issues.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Close inactive issues -on: - schedule: - - cron: "55 1 * * *" - -jobs: - close-issues: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v5 - with: - # issues - only-issue-labels: "need info" - days-before-issue-stale: 14 - days-before-issue-close: 7 - stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 14 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." - - # pull requests - days-before-pr-stale: -1 - days-before-pr-close: -1 - - # other settings - repo-token: ${{ secrets.GITHUB_TOKEN }} - close-issue-reason: "not_planned" \ No newline at end of file