Skip to content

Commit

Permalink
chore: fix update dictionary workflow (#5097)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Dec 21, 2023
1 parent d61e8b5 commit 354e870
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/update-dictionaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,27 @@ jobs:
&& pnpm i
&& pnpm run update-snapshots-only -- ${{ matrix.repo }}
- name: Normalize Repo Name
id: step-normalize-repo-name
env:
REPO: ${{ matrix.repo }}
REPLACE: "/"
REPLACE_WITH: "__"
run: |
echo "REPO_NAME=${REPO//${REPLACE}/${REPLACE_WITH}}" >> $GITHUB_OUTPUT
- name: Store Repo Diff
env:
REPO: ${{ steps.step-normalize-repo-name.outputs.REPO_NAME }}
run: |
mkdir temp || echo temp already exists
REPO=$(echo "${{ matrix.repo }}" | sed "s/[/]/__/g")
echo "${{ matrix.repo }} =>" $REPO
git diff integration-tests/config integration-tests/repositories integration-tests/snapshots > temp/$REPO.diff
- name: store diff
uses: actions/upload-artifact@v4
with:
name: diffs-integrations-${{ matrix.repo }}
name: diffs-integrations-${{ steps.step-normalize-repo-name.outputs.REPO_NAME }}
path: temp/*.diff
retention-days: 1

Expand Down

0 comments on commit 354e870

Please sign in to comment.