feat(icons): added share-3
icon
#51
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: Pull request icon preview | |
on: | |
pull_request: | |
paths: | |
- 'icons/*.svg' | |
jobs: | |
generate-changed-icons-comment: | |
name: Generate Changed Icons Comment | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41 | |
with: | |
files: icons/*.svg | |
- uses: actions/setup-node@v4 | |
- name: Install svgson for code preview (safer and faster than installing all deps) | |
run: npm install svgson | |
- name: Save PR number | |
run: | | |
mkdir -p ./pr | |
echo ${{ github.event.number }} > ./pr/NR | |
- name: Generate comment markup | |
run: node ./scripts/generateChangedIconsCommentMarkup.mjs >> ./pr/comment-markup.md | |
id: comment-markup | |
env: | |
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pr_number | |
path: pr/ |