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

Add GitHub Action Workflow for Updating Upstream components #30

Merged
merged 8 commits into from Aug 22, 2020

Conversation

@coatless
Copy link
Owner

@coatless coatless commented Aug 21, 2020

The idea behind this is to setup a workflow that automatically:

  • Checks if a new version of the upstream library has been released.
  • Downloads and extracts the new version of the library
  • Updates version in DESCRIPTION
  • Adds new entry in ChangeLog
  • Update the NEWS.md file with information from HISTORY.md and include/ensmallen_bits/ens_version.hpp automatically.
  • Creates a new PR with the changes for final review

This uses heavily modified version of an upstream workflow action described at:

The main difference between both approaches is we use the embedded ensmallen version file to create a version string instead of maintaining a separate file in the repository that stores the version. Version information for the embedded ensmallen file is extracted using regular expressions using three different grep statements as I opted to avoid making a bash array. Additionally, there was work put into ensure the correct format for updating ChangeLog and NEWS.md.

@coatless coatless merged commit 358fbc7 into master Aug 22, 2020
5 checks passed
5 checks passed
macOS-latest (release)
Details
windows-latest (release)
Details
windows-latest (oldrel)
Details
ubuntu-16.04 (release)
Details
ubuntu-16.04 (oldrel)
Details
@coatless coatless deleted the gh-action-upstream-refresh branch Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.