Skip to content

Commit

Permalink
[skip ci] Update metal-api-surface.yaml (#17470)
Browse files Browse the repository at this point in the history
  • Loading branch information
blozano-tt authored Feb 1, 2025
1 parent 55dd492 commit b874abf
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/metal-api-surface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,13 @@ jobs:
- name: Run script
id: compute_api
run: |
output=$(python3 compute_public_api_surface.py)
echo "result=$output" >> $GITHUB_ENV
python3 compute_public_api_surface.py
- name: Parse JSON output
id: parse_json
run: |
echo '${{ env.result }}' | jq -r '"date=\(.date)\nnum_files=\(.num_files)\nnum_types=\(.num_types)\nnum_methods=\(.num_methods)"' >> $GITHUB_ENV
python3 compute_public_api_surface.py > api_surface.json
cat api_surface.json
- name: Send Slack message to a channel
uses: slackapi/slack-github-action@v1.26.0
with:
payload: |
{
"text": "*Public API Surface Report* 📊\n
📅 *Date:* ${{ env.date }}\n
📂 *Files:* ${{ env.num_files }}\n
🔠 *Types:* ${{ env.num_types }}\n
🔧 *Methods:* ${{ env.num_methods }}"
}
payload-file-path: "./api_surface.json"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_CHANNEL_ID: C08BAGE4410

0 comments on commit b874abf

Please sign in to comment.