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

Update workflows to be fully re-useable #10

Merged
merged 41 commits into from
Dec 23, 2024
Merged

Update workflows to be fully re-useable #10

merged 41 commits into from
Dec 23, 2024

Conversation

zkamvar
Copy link
Member

@zkamvar zkamvar commented Dec 20, 2024

Based on the feedback in reichlab/decisions#5 and from many discussions with @elray, I have modified these workflows to be fully compatible as re-usable workflows without the need for an app.

I have created an example of these workflows in practice in https://github.com/zkamvar/hub-dashboard-workflow:

I'm also going to make a squash commit for this because there was a lot of trial and error.

NOTE: when this gets merged, I need to remove the znk/no-token branch from the caller workflows

See the note from
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#operators

 - GitHub ignores case when comparing strings.
 - steps.<step_id>.outputs.<output_name> evaluates as a string. You need
   to use specific syntax to tell GitHub to evaluate an expression
   rather than treat it as a string. For more information, see Accessing
   contextual information about workflow runs.
 - For numerical comparison, the fromJSON() function can be used to
   convert a string to a number. For more information on the fromJSON()
   function, see fromJSON.
regenerate will already be in the correct format, so this is a good fallback.
@zkamvar zkamvar requested a review from elray1 December 20, 2024 20:52
Copy link
Member Author

@zkamvar zkamvar left a comment

Choose a reason for hiding this comment

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

changes from code walkthrough before merging

.github/workflows/rebuild-data.yaml Outdated Show resolved Hide resolved
.github/workflows/rebuild-data.yaml Outdated Show resolved Hide resolved
.github/workflows/rebuild-site.yaml Outdated Show resolved Hide resolved
.github/workflows/rebuild-site.yaml Outdated Show resolved Hide resolved
Copy link

@elray1 elray1 left a comment

Choose a reason for hiding this comment

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

approved via live walkthrough

@zkamvar zkamvar merged commit 9d364f6 into main Dec 23, 2024
@zkamvar zkamvar deleted the znk/no-token branch December 23, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants