404 Not found with test on Kubernetes but working outside tracetest #538
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Label PRs and issues created by users that are not part | |
# of the tracetest team. | |
on: | |
issues: | |
types: | |
- opened | |
permissions: | |
id-token: write | |
contents: read | |
issues: write | |
pull-requests: write | |
jobs: | |
notify_slack: | |
name: Label user request | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Load team members | |
id: load_team_members | |
run: | |
echo "team_members=$(cat .github/TEAM_MEMBERS.txt | tr '\n' ',')" >> $GITHUB_OUTPUT | |
- name: Check if it's team member | |
id: is_team_member | |
if: github.event.action == 'opened' | |
uses: mathnogueira/[email protected] | |
with: | |
blocked_users: ${{ steps.load_team_members.outputs.team_members }} | |
- name: Label issue | |
if: | | |
steps.is_team_member.outputs.result == 'false' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['user-request'] | |
}) |