-
-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (30 loc) · 984 Bytes
/
broadcast_api_changes.yml
File metadata and controls
36 lines (30 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
# yamllint disable rule:line-length
name: Broadcast API changes
on:
push:
branches: ['main']
paths: ['codecov-cli/codecovcli_commands', 'prevent-cli/preventcli_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/install-gh-cli-action@v0.1.0
- name: Get auth token
id: token
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- 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.token.outputs.token }}