{"repo":"nrwl/nx-set-shas","free":true,"listed":false,"github":"https://github.com/nrwl/nx-set-shas","clone":"git clone https://github.com/nrwl/nx-set-shas.git","description":":sparkles: A Github Action which sets the base and head SHAs required for `nx affected` commands in CI","language":"TypeScript","stars":201,"topics":["nx","nrwl","github-actions"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"Set SHAs Action ✨ A GitHub Action which sets the base and head SHAs required for the nx affected commands in CI - Example Usage - Configuration Options - Permissions in v2+ - Self-hosted runners - Background - Problem - License NOTE: This documentation is for version 2.x.x and later which now uses the GitHub API to track successful workflows. You can find documentation for version 1.x.x which used GIT tags here. Example Usage .github/workflows/ci.yml Configuration Options Permissions in v2+ This Action uses Github API to find the last successful workflow run. If your GITHUB TOKEN has restrictions set please ensure you override them for the workflow to enable read access to actions and contents . If you are using the action with merge queues you will need to enable also pull-request permission: Self-hosted runners This Action supports usage of your own self-hosted runners, but since it uses GitHub APIs you will need to grant it explicit access rights: Background When we run the affected command on Nx, we can specify 2 git history positions - base and head, and it calculates which projects in your repository changed between those 2 commits. We can then run a set of tasks (like building or linting) only on those affected projects. This makes it easy to set up a CI system that scales well with the continuous growth of your repository, as you add more and more projects. Problem Figuring out what these two git commits are might not be as simple as it seems. On a CI system that runs","default_branch":null,"files":null,"tree":[],"storefront":"/r/nrwl","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nrwl/nx-set-shas/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}