Skip to content

Commit

Permalink
Merge pull request #4585 from unisonweb/topic/update-transcripts-work…
Browse files Browse the repository at this point in the history
…flow

remove irrelevant `changed-files` step from update-transcripts-workflow
  • Loading branch information
aryairani authored Jan 6, 2024
2 parents 49eb0a4 + 511f323 commit a643a8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
- trunk
tags:
- release/*
workflow_dispatch:


jobs:

Expand Down
22 changes: 2 additions & 20 deletions .github/workflows/update-transcripts.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: update-golden-tests
name: update-transcripts

on:
workflow_dispatch:
Expand Down Expand Up @@ -77,33 +77,15 @@ jobs:
git config --global user.email "[email protected]"
- 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:
Expand Down

0 comments on commit a643a8e

Please sign in to comment.