Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Readable data changes | |
on: | |
pull_request_target: | |
jobs: | |
readable-data-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
fetch-depth: '0' | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Parse asset changes to be more readable | |
id: readable-assets | |
run: python readableAssets.py | |
env: | |
REPO: ${{ github.repository }} | |
REPO_PATH: ${{ github.workspace }} | |
PRNUM: ${{ github.event.number }} | |
COMMIT_A: origin/${{ github.base_ref }} | |
COMMIT_B: HEAD | |
- name: Find Comment | |
uses: peter-evans/find-comment@v3 | |
id: find-comment | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: 'github-actions[bot]' | |
- name: Create comment | |
if: steps.find-comment.outputs.comment-id == '' | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
${{ steps.readable-assets.outputs.OUTPUT_MESSAGE }} | |
- name: Update comment | |
if: steps.find-comment.outputs.comment-id != '' | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
comment-id: ${{ steps.fc.outputs.comment-id }} | |
body: | | |
${{ steps.readable-assets.outputs.OUTPUT_MESSAGE }} |