[stack-hci-vm] Add stack-hci-vm 1.1.5 to index.json #1479
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
on: | |
pull_request_target: | |
types: [opened] | |
branches: | |
- main | |
permissions: | |
pull-requests: write | |
jobs: | |
thank-user: | |
runs-on: ubuntu-20.04 | |
name: Say thanks for the PR | |
steps: | |
- name: get message | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
run: | | |
message=$(echo "$TITLE" | grep -oP '[{\[][^}\]]+[}\]]' | sed 's/{\|}\|\[\|\]//g') | |
echo "message=$message" >> $GITHUB_ENV | |
if [ -z $message ]; then | |
echo "message=$(echo 'Thank you for your contribution! We will review the pull request and get back to you soon.')" >> $GITHUB_ENV | |
fi | |
- name: comment on the pull request | |
uses: mshick/add-pr-comment@v2 | |
with: | |
repo-token: ${{ secrets.CLI_BOT }} | |
message-id: prcommentbot | |
message: "${{ env.message }}" |