Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release pipeline #20

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/build-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,19 @@ jobs:
- name: Check for dist changes
id: check_dist_changes
run: |
git status
git add dist
if [ -n "$(git diff --name-only --staged)" ]; then
echo "dist_changed=true" >> "$GITHUB_OUTPUT"
echo "dist_changed=true" >> $GITHUB_OUTPUT
else
echo "dist_changed=false" >> "$GITHUB_OUTPUT"
echo "dist_changed=false" >> $GITHUB_OUTPUT
fi

# Notify if no changes to release or pre-release
- name: Notify no changes
if: steps.check_dist_changes.outputs.dist_changed == 'false'
run: echo "::notice::There were no changes to release or pre-release."

# Update the version in package.json if dist has changed
- name: Update package.json version
if: steps.check_dist_changes.outputs.dist_changed == 'true'
Expand Down
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function run() {
// Load the configuration
const workspacePath = process.env.GITHUB_WORKSPACE || '';
const config = loadConfig(workspacePath);
console.log('Config loaded:', JSON.stringify(config, null, 2));
console.log('Config loaded: ', JSON.stringify(config, null, 2));
core.debug(`Loaded config: ${JSON.stringify(config)}`);

const time = (new Date()).toTimeString();
Expand Down
Loading