Skip to content

[chore]: align Upgrade Academies workflow with Makefile Hugo setup#225

Open
banana-three-join wants to merge 7 commits into
layer5io:masterfrom
banana-three-join:chore/banana-three-join/bump-academy-version-to-npm
Open

[chore]: align Upgrade Academies workflow with Makefile Hugo setup#225
banana-three-join wants to merge 7 commits into
layer5io:masterfrom
banana-three-join:chore/banana-three-join/bump-academy-version-to-npm

Conversation

@banana-three-join

Copy link
Copy Markdown
Contributor

This PR fixes #224

*** Notes for Reviewers ***

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Lenox Wiltshire <lenoxwiltshire@gmail.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@github-actions

Copy link
Copy Markdown

🚀 Preview deployment: https://layer5io.github.io/academy-theme/pr-preview/pr-225/

Comment thread .github/workflows/bump-academy-version.yml Outdated
token: ${{ secrets.GH_ACCESS_TOKEN }}
branch: update-academy-theme-${{ github.event.release.tag_name }}
title: '[Automated] Update academy-theme to ${{ github.event.release.tag_name }}'
branch: update-academy-theme-${{ github.event.release.tag_name || 'latest' }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove “latest”


Auto-generated based upon release of a new version of layer5io/academy-theme.
commit-message: Update academy-theme to ${{ github.event.release.tag_name }}
commit-message: Update academy-theme to ${{ github.event.release.tag_name || 'latest' }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Emoji e all uses of latest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Usage of latest has been removed but for some more context, I added it because on failures, manual runs were being run which resulted in empty PRs so I added it as a safeguard, in my current approach, I'm getting the version directly from the go.mod so if there's any manual runs, the PRs don't end up empty. I can revert this approach back to github.event.release.tag_name if it's desired.


- name: Install dependencies
run: |
cd dependent

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why change directories here? This is incorrect.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Resolved the repo checkout to the root file so there isn't a necessity to change directories to run the makefile recipes

- name: Install dependencies
run: |
cd dependent
make setup

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Using the make targets: great.

…inclusion of version variable for manual runs in case of failure

Signed-off-by: Lenox Wiltshire <lenoxwiltshire@gmail.com>
Signed-off-by: Lenox Wiltshire <lenoxwiltshire@gmail.com>
Signed-off-by: Lenox Wiltshire <lenoxwiltshire@gmail.com>
@banana-three-join

Copy link
Copy Markdown
Contributor Author

Test ran successfully. Here's the logs and here's also a screenshot of the run:
image after the PR has been reviewed and accepted, I'll go ahead and revert to the changes before my test commits

Comment thread .github/workflows/bump-academy-version.yml Outdated
Comment thread .github/workflows/bump-academy-version.yml Outdated
Comment thread .github/workflows/bump-academy-version.yml Outdated
Signed-off-by: Lenox Wiltshire <lenoxwiltshire@gmail.com>
Signed-off-by: Lenox Wiltshire <lenoxwiltshire@gmail.com>
Signed-off-by: Lenox Wiltshire <lenoxwiltshire@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Align Upgrade Academies workflow with Makefile Hugo setup

5 participants