diff --git a/.github/workflows/broadcast_api_changes.yml b/.github/workflows/broadcast_api_changes.yml new file mode 100644 index 000000000..0a26d2e2e --- /dev/null +++ b/.github/workflows/broadcast_api_changes.yml @@ -0,0 +1,29 @@ +--- +# yamllint disable rule:line-length + +name: Broadcast API changes + +on: + push: + branches: ['main'] + 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/install-gh-cli-action@v0.1.0 + + - 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: ${{ secrets.GH_RELEASE_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1cecc2e2..07587502d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: - name: Run command_dump run: | python command_dump.py - - name: Detect changes + - name: Detect changes on commit run: | if [ -n "$(git diff codecovcli_commands)" ]; then echo "Please run `python command_dump.py` before submitting, or install the hooks"