Skip to content

[#13885] JDBC_PING documentation should use JDBC_PING2 in the example… #27

[#13885] JDBC_PING documentation should use JDBC_PING2 in the example…

[#13885] JDBC_PING documentation should use JDBC_PING2 in the example… #27

name: Update Flaky Test Issue
run-name: ${{ github.event.workflow_run.display_title }}
on:
workflow_run:
workflows: [Test]
types: [completed]
jobs:
issueForFlakyTest:
if: github.event.workflow_run.conclusion == 'success'
name: Flaky Test Issue
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install xmlstarlet tool
# xmlstarlet is needed by bin/gh/track_flaky_tests.sh
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y xmlstarlet
# Downloading flaky artifact containing
# zip file with flaky test reports and file
# containing PR target branch
- name: Download a Build Artifact
uses: actions/[email protected]
id: download-artifact
with:
name: flaky-test-report
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
- name: Create GitHub Issue
env:
RUNNER_DEBUG: 1
FLAKY_TEST_GLOB: "**/target/*-reports*/**/TEST-*FLAKY.xml"
GH_JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}"
GH_TOKEN: ${{ github.token }}
run: |
set +e
cat target-branch.txt
TARGET_BRANCH=$(cat target-branch.txt) bin/gh/track_flaky_tests.sh
true
- name: Get event name
id: event_name
uses: juliangruber/read-file-action@v1
with:
path: ./event-name.txt
- name: Get PR number
id: pr-number
uses: juliangruber/read-file-action@v1
with:
path: ./pr-number.txt
- if: ${{ steps.event_name.outputs.content == 'pull_request' }}
name: Comment PR
uses: ./.github/actions/comment-pr-flaky-test
with:
pr-number: ${{ steps.pr-number.outputs.content }}