Skip to content

Commit b134c3f

Browse files
committed
chore: fix formatting
1 parent 1cdcd13 commit b134c3f

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ jobs:
8585
major_version="v$major"
8686
minor_version="v$major.$minor"
8787
88-
echo "version=$RELEASE_VERSION" >> "$GITHUB_OUTPUT"
89-
echo "major=$major_version" >> "$GITHUB_OUTPUT"
90-
echo "minor=$minor_version" >> "$GITHUB_OUTPUT"
88+
{
89+
echo "version=$RELEASE_VERSION"
90+
echo "major=$major_version"
91+
echo "minor=$minor_version"
92+
} >> "$GITHUB_OUTPUT"
9193
shell: bash
9294

9395
- name: Create immutable version tag

test/workflows.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ describe('GitHub workflows', () => {
3434
expect(source).toContain('git tag -f "$MINOR_VERSION" "$GITHUB_SHA"')
3535
expect(source).toContain('git push --force origin "refs/tags/$MAJOR_VERSION"')
3636
expect(source).toContain('git push --force origin "refs/tags/$MINOR_VERSION"')
37+
expect(source).toContain('} >> "$GITHUB_OUTPUT"')
38+
expect(source).not.toContain('echo "major=$major_version" >> "$GITHUB_OUTPUT"')
3739
})
3840
})

0 commit comments

Comments
 (0)