From c559c80a81f091bd7402a0ed7dc928f4ce00994d Mon Sep 17 00:00:00 2001 From: Arya Irani Date: Fri, 5 Jan 2024 22:23:17 -1000 Subject: [PATCH] update workflow 1 --- .github/workflows/update-transcripts.yaml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/update-transcripts.yaml b/.github/workflows/update-transcripts.yaml index 965eabbb3f..081b971dbc 100644 --- a/.github/workflows/update-transcripts.yaml +++ b/.github/workflows/update-transcripts.yaml @@ -1,4 +1,4 @@ -name: update-golden-tests +name: update-transcripts on: workflow_dispatch: @@ -77,33 +77,15 @@ jobs: git config --global user.email "actions@github.com" - name: build run: stack --no-terminal build --fast --no-run-tests --test - - name: Get changed files - id: changed-files - uses: tj-actions/changed-files@v41 - with: - files: | - **/*.md - separator: "\n" - name: round-trip-tests run: | mkdir -p /private/tmp touch /private/tmp/roundtrip.u touch /private/tmp/rewrite-tmp.u stack --no-terminal exec unison transcript unison-src/transcripts-round-trip/main.md - git add unison-src/transcripts-round-trip/main.output.md - # Fail if any transcripts cause git diffs. - git diff --cached --ignore-cr-at-eol --exit-code stack --no-terminal exec unison transcript unison-src/transcripts-manual/rewrites.md - git add unison-src/transcripts-manual/rewrites.output.md - # Fail if any transcripts cause git diffs. - git diff --cached --ignore-cr-at-eol --exit-code - name: transcripts - run: | - stack --no-terminal exec transcripts - # Add all changes to the index for when we diff. - git add --all - # Fail if any transcripts cause git diffs. - git diff --cached --ignore-cr-at-eol --exit-code + run: stack --no-terminal exec transcripts - name: save transcript changes uses: stefanzweifel/git-auto-commit-action@v4 with: