Skip to content

Commit

Permalink
fix: fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dsp-ant committed Jan 13, 2025
1 parent c9b1adf commit c30550a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ jobs:

- name: Check release
run: |
uv run --script scripts/release.py --dry-run "${{ matrix.directory }}" "${{ needs.prepare.outputs.last_release }}" | tee -a "$GITHUB_OUTPUT"
output=$(uv run --script scripts/release.py --dry-run "${{ matrix.directory }}" "${{ needs.prepare.outputs.last_release }}" \
| grep -o -E "[a-zA-Z0-9\-]+@[0-9]+\.[0-9]+\.[0-9]+" | head -n 1)
echo "release=$output" | tee -a "$GITHUB_OUTPUT"
check-tag:
needs: [prepare, check-release]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv run --script scripts/release.py "${{ matrix.directory }}" "${{ needs.prepare.outputs.last_release }}" >> "$GITHUB_OUTPUT"
run: uv run --script scripts/release.py "${{ matrix.directory }}" "${{ needs.prepare.outputs.last_release }}" >> "$GITHUB_OUTPUT"

create-release:
needs: [prepare, release]
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def main(directory: Path, git_hash: GitHash, dry_run: bool) -> int:
if not dry_run:
click.echo(f"{name}@{version}")
else:
click.echo(f"🔍 Dry run: Would have published {name}@{version} if this was a real release")
click.echo(f"Dry run: Would have published {name}@{version}")
return 0
except Exception as e:
return 1
Expand Down

0 comments on commit c30550a

Please sign in to comment.