Skip to content

Fix glossary export playwright #71853

Fix glossary export playwright

Fix glossary export playwright #71853

Workflow file for this run

on:
pull_request_target:
permissions:
contents: read
pull-requests: write
issues: write
name: Team Label
jobs:
labeler:
runs-on: ubuntu-latest
name: Team Label
steps:
# Keep fork approval scoped to the current head SHA. This must run in
# the same job as the trusted-author labeler so synchronize events first
# invalidate an earlier approval and then revalidate allowlisted authors.
- name: Invalidate safe-to-test on fork sync
if: |
github.event.action == 'synchronize' &&
github.event.pull_request.head.repo.full_name != github.repository &&
contains(github.event.pull_request.labels.*.name, 'safe to test')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
run: |
set -euo pipefail
if ! response=$(gh api --silent -X DELETE \
"/repos/${REPO}/issues/${PR_NUMBER}/labels/safe%20to%20test" 2>&1); then
if [[ "$response" != *"HTTP 404"* ]]; then
echo "$response" >&2
exit 1
fi
echo "safe to test label already absent"
fi
- uses: JulienKode/team-labeler-action@v3.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Verify PR labels
id: verify
continue-on-error: true
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
valid-labels: 'safe to test'
pull-request-number: '${{ github.event.pull_request.number }}'
disable-reviews: true # To not auto approve changes
- name: Add verification comment
if: steps.verify.outcome != 'success'
uses: peter-evans/create-or-update-comment@v5
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
**Hi there 👋 Thanks for your contribution!**
The OpenMetadata team will review the PR shortly! Once it has been labeled as `safe to test`, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.
Let us know if you need any help!