[bug] Update kubernetes.json #1568
Workflow file for this run
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
name: New PR | |
on: | |
pull_request_target: | |
branches: | |
- main | |
types: [opened] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
jobs: | |
add-comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Comment and label | |
run: | | |
gh pr comment "$PR_NUMBER" --body "Thank you for your contribution, our team will be reviewing this shortly, please be available for any follow up questions or code review feedback!" | |
- id: file_changes | |
uses: trilom/[email protected] | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Label PR based on Changes | |
env: | |
FILES_ADDED: ${{ steps.file_changes.outputs.files_added }} | |
FILES_MODIFIED: ${{ steps.file_changes.outputs.files_modified }} | |
run: | | |
echo "$FILES_ADDED" | |
if [[ "$FILES_ADDED" =~ "config.yml" ]]; then | |
echo "New config.yml added" | |
gh pr edit "$PR_NUMBER" --add-label "new-quickstart" | |
elif [[ "$FILES_MODIFIED" =~ quickstarts/.* ]]; then | |
echo "Quickstart Updated" | |
gh pr edit "$PR_NUMBER" --add-label "improved-quickstart" | |
fi |