Skip to content

Commit

Permalink
Merge pull request #191 from creativecommons/github-actions-local-test
Browse files Browse the repository at this point in the history
add Local GitHub Action testing to README
  • Loading branch information
TimidRobot authored Oct 25, 2023
2 parents 725e257 + 91bbcad commit b096693
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ purpose. This is useful for a few reasons:
talking to a bot instead of a human.
- It makes it easy to audit our automations in the future, because all commits
and messages will be associated with the single @cc-open-source-bot user
account via the GitHub search, api, etc.
account via the GitHub search, api, etc.
- We won't need to update automations when there are changes to staff or
volunteers.

Expand Down Expand Up @@ -247,6 +247,21 @@ GitHub Action:
[requests]: https://requests.readthedocs.io/en/latest/
## Local GitHub Action testing
The GitHub Actions can be tested locally using:
- [nektos/act](https://github.com/nektos/act): _Run your GitHub Actions locally
🚀_
On ARM laptops (ex. M1 MacBook Pros), there may not be docker images available.
You may have to specify the linux/amd64 architecture. For example:
```shell
act --secret ADMIN_GITHUB_TOKEN --container-architecture linux/amd64 --rm \
--job manage_issues_and_pull_requests
```
(this assumes that the `ADMIN_GITHUB_TOKEN` environment variable has been set)


## License

- [`LICENSE`](LICENSE) (Expat/[MIT][mit] License)
Expand Down

0 comments on commit b096693

Please sign in to comment.