feat(tokens): add opacity token scale #395
Workflow file for this run
This file contains hidden or 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: Token Diff Generate | |
| # Fork PRs get a read-only GITHUB_TOKEN on pull_request events no matter what | |
| # `permissions:` says, so report generation (here) and comment posting | |
| # (token-diff-pr-comment-post.yml, triggered by workflow_run) are split into | |
| # separate workflows. The artifact is the only thing that crosses the boundary. | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| token-diff-generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate token diff report | |
| id: diff | |
| uses: ./.github/actions/generate-diff | |
| with: | |
| tool: diff-generator | |
| base-ref: ${{ github.base_ref }} | |
| local-path: packages/tokens/src | |
| repository: ${{ github.repository }} | |
| format: markdown | |
| output-file: /tmp/token-diff.md | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Save report for comment workflow | |
| run: | | |
| mkdir -p /tmp/artifact | |
| echo "${{ github.event.pull_request.number }}" > /tmp/artifact/pr-number.txt | |
| echo "${{ steps.diff.outputs.diff-generated }}" > /tmp/artifact/diff-generated.txt | |
| printf '%s\n' "${{ steps.diff.outputs.diff-content }}" > /tmp/artifact/diff-content.txt | |
| if [ -f /tmp/token-diff.md ]; then | |
| cp /tmp/token-diff.md /tmp/artifact/diff-report.md | |
| fi | |
| - name: Upload diff artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: token-diff-report | |
| path: /tmp/artifact | |
| retention-days: 1 |