-
Notifications
You must be signed in to change notification settings - Fork 0
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
Style dictionary build workflow 3 #30
Conversation
…m/Fullscript/aviary-tokens into style-dictionary-build-workflow-3
…m/Fullscript/aviary-tokens into style-dictionary-build-workflow-3
…m/Fullscript/aviary-tokens into style-dictionary-build-workflow-3
…to style-dictionary-build-workflow-3
…m/Fullscript/aviary-tokens into style-dictionary-build-workflow-3
commit_message: Transformed tokens | ||
|
||
build_style_dictionary: | ||
needs: transform_tokens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This job won't run unless the transform_tokens
job is successful
@@ -26,12 +21,32 @@ jobs: | |||
node-version: "14" | |||
- name: Install Node Dependencies | |||
run: npm install | |||
- name: Run token-transformer | |||
- name: Pull any branch changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing this in both jobs since we've run into issues where the job errors out in the commit step since it's behind the origin branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, so this basically re-bases the branch with origin, as there was merging errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I ran into that issue in this run: https://github.com/Fullscript/aviary-tokens/runs/7115843713?check_suite_focus=true
So I figured just in case it happens again we could have this as a failsafe
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotta do this repetitive work since each job uses a new runner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a work of art
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mastahpiece!
Apparently third time's the charm!
This MR combines the two existing workflows into one, and sets up each action as individual jobs instead. We're doing this because you can watch one workflow go through its jobs as opposed to switching between two workflows to check (you'll see this in the UI of the successful run below). Cath and I decided that it was worth running this workflow regardless of whether or not the change was made only to the
tokens.json
file, or any of the two config files (config.json
andbuild.js
).Check out a successful run here