Skip to content
This repository was archived by the owner on May 13, 2020. It is now read-only.

Fix broken automated release process #126

Merged
merged 1 commit into from
Nov 9, 2019

Conversation

SeanTAllen
Copy link
Member

1 large issue:

Pushing back to GitHub using the supplied GITHUB_TOKEN does not
trigger additonal events. What does this mean? When we push back a
release tag like 0.1.0, the next workflow doesn't trigger.

To address, you have to use a personal access token to trigger.

This commit makes that change.

Additionally, this commit improves error messages from release scripts
by having the error messages actually displayed instead of an generic
unbound variable error message.

1 large issue:

Pushing back to GitHub using the supplied GITHUB_TOKEN does not
trigger additonal events. What does this mean? When we push back a
release tag like `0.1.0`, the next workflow doesn't trigger.

To address, you have to use a personal access token to trigger.

This commit makes that change.

Additionally, this commit improves error messages from release scripts
by having the error messages actually displayed instead of an generic
unbound variable error message.
echo -e "\e[31mA personal access token needs to be set in GITHUB_TOKEN. Exiting."
if [[ -z "${RELEASE_TOKEN}" ]]; then
echo -e "\e[31mA personal access token needs to be set in RELEASE_TOKEN."
echo -e "\e[31mIt should not be secrets.GITHUB_TOKEN. It has to be a"
Copy link
Contributor

@Theodus Theodus Nov 9, 2019

Choose a reason for hiding this comment

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

Should this "It should not be secrets.GITHUB_TOKEN." be here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Definitely yes.

Copy link
Member Author

Choose a reason for hiding this comment

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

The default assumption of someone who knows GH actions would be to use secrets.GITHUB_TOKEN. That is what I was doing. It won't work if you do.

@SeanTAllen SeanTAllen merged commit d6888f0 into master Nov 9, 2019
@SeanTAllen SeanTAllen deleted the automated-release-process-fixes branch November 9, 2019 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants