ni / nisystemlink-clients-python

Python API for interacting with a SystemLink Server, created and supported by NI.
https://ni.com/systemlink
MIT License
10 stars 14 forks source link

chore: Commit semantic releases as github-actions user #31

Closed cameronwaterman closed 1 year ago

cameronwaterman commented 1 year ago

What does this Pull Request accomplish?

semantic-release currently fails to push to master for two reasons:

  1. There wasn't a configured GitHub user
  2. Master is a protected branch

This change configures the default actions-users as the GitHub user.

The GH_TOKEN secret is a personal access token linked to my GitHub account with "repo" level access. Prior to this change I modified the protected branch policy to allow my user to bypass the PR policy, which allows the configured user to push directly to the master branch. I'm open to suggestions if there are potentially better solutions to this problem.

Why should this Pull Request be merged?

Fixes semantic-release push to master.

What testing has been done?

Successful push to master and publish to pypi as part of the following build: https://github.com/ni/nisystemlink-clients-python/actions/runs/3501594867/jobs/5865425349 Resulting commit: https://github.com/ni/nisystemlink-clients-python/commit/7aadea4d9cb6ce5cb56c483b8dbfac48892697f1