Skip to content

Workflow file for this run

name: PR announcement
on:
pull_request_target:
types:
- opened
jobs:
commnet-to-pr:
name: Do an announcement to PR
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c
with:
app_id: ${{ secrets.MR_AVOCADO_ID }}
installation_id: ${{ secrets.MR_AVOCADO_INSTALLATION_ID }}
private_key: ${{ secrets.MR_AVOCADO_PRIVATE_KEY }}
- name: Get PR ID
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
pr_data=$(gh api graphql -f query='query {
repository(owner:"avocado-framework", name:"avocado") {
pullRequest(number:${{ github.event.number }}) {
id
}
}
}')
echo 'PR_ID='$(echo $pr_data | jq .data.repository.pullRequest.id) >> $GITHUB_ENV
- name: comment on PR
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
gh api graphql -f query='mutation {
addComment(input: {
subjectId: ${{ env.PR_ID }},
<<<<<<< HEAD

Check failure on line 39 in .github/workflows/pr_announcement.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr_announcement.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
body: """${{ vars.PR_ANNOUNCEMENT }}"""}) {
=======
body: ${{ vars.PR_ANNOUNCEMENT }}}) {
>>>>>>> 3ba431e7 (Fix for the latest update of pr_announcement CI)
clientMutationId
}
}'