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

gh-actions: fix release workflow #1332

Merged
merged 8 commits into from
Sep 4, 2023

Conversation

musicEnfanthen
Copy link
Member

This PR tries to fix the failing release workflow. It imrpoves and simplifies the exit and if conditions, and adds some validation steps that will make it easier to debug failing workflows in the future.

@github-actions github-actions bot added the Component: Workflows changes to GitHub Actions workflows (assigned automatically) label Sep 1, 2023
- name: Validate TARGET_DIR
run: echo "TARGET_DIR=$TARGET_DIR"

### Exit if ref is not develop branch or release tag
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could probably be moved up the chain, since it doesn't require anything else to run (I don't think?). There's no point getting this far if we're just going to exit...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We wanted to run the build and artifact upload before exiting (on each branch that triggers the workflow). But you are right, we could probably exit before setting the target_dir variable.

@ahankinson
Copy link
Member

You're a star, @musicEnfanthen ! GH Actions are not fun to write.

@musicEnfanthen musicEnfanthen mentioned this pull request Sep 2, 2023
@musicEnfanthen
Copy link
Member Author

@ahankinson If you are OK with the latest changes, you can merge this PR. It goes to the release branch.

@musicEnfanthen musicEnfanthen added this to the MEI 5.0 milestone Sep 3, 2023
@ahankinson ahankinson merged commit 11563e2 into music-encoding:release/v5.0 Sep 4, 2023
1 check passed
@musicEnfanthen musicEnfanthen deleted the fix-release branch September 4, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Workflows changes to GitHub Actions workflows (assigned automatically)
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants