Git Actions

sfrunza13

sfrunza13

Posted on April 15, 2023

Git Actions

This week in Star Chart

We are nearing the 1.0 release of star chart and a lot of the big ticket items are done, the site really seems as though it is coming together and we even deployed it to production.

Initially we intended to deploy to production every time we pushed a v Tag for a new version of star chart and have an action run that would automate the release and change log for that new version tag. We tried testing this and found that we had some problems with permissions which will be a common theme this week although for a different reason later and we decided instead to create a release branch. The releases will be done by merging the appropriate version of main into the release branch and that will trigger the release to prod. What I did is I got an action working that will automate a changelog, creating a release tag with the release and taking all of the new commits from this release tag to the previous one and documenting them in a change log for the new release.

This was achieved using the following action: Action!. Initially this was what I intended to use to automate releases on pushing version tags but it also worked for this. The problem I ran into was the following:

 Generating release tag
  Attempting to create or update release tag "release"
  Could not create new tag "refs/tags/release" (Resource not accessible by integration) therefore updating existing tag "tags/release"
Enter fullscreen mode Exit fullscreen mode

I realized that it was a permissions problem but could not figure out at a glance what permission I was missing and this wasn't really documented in the action docs so I eventually found my way to Github Docs. I made an educated guess as to which of these subheadings we would need by matching what I saw in the error to a similar looking git api. After adding permissions to the yml file to write content the next release worked and generated a change log:

Image description

PRs: #563, #590, #609

💖 💪 🙅 🚩
sfrunza13
sfrunza13

Posted on April 15, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related