Skip to content

feat: make a new issue #9

feat: make a new issue

feat: make a new issue #9

---
# yamllint disable rule:line-length
name: Broadcast API changes
on:
push:
branches: ['main']
paths: ['codecovcli_commands']
pull_request:
paths: ['codecovcli_commands']
jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install GitHub CLI
uses: dev-hanz-ops/[email protected]
- name: Generate a token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.RELEASER_APP_ID }}
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
repositories: "codecov/wrapper"
- name: Open issue on wrapper
run: |
gh issue create -R codecov/wrapper -t 'New change on CLI' -b "$(gh pr diff $BRANCH)"
env:
BRANCH: ${{ github.head_ref }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}