builders: fix xs RTL running nanosleep #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: gen-workflows | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| gen-workflows: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # https://github.com/orgs/community/discussions/35410?sort=top | |
| # TLDR: | |
| # 1. Generate a Fine-grained token in https://github.com/settings/tokens | |
| # 1.1 Choose "All repositories" or "Only select repositories" | |
| # 1.2 Check contents:write, workflows:write | |
| # 2. Add the generated token to repository's action | |
| # 2.1 Repo > Settings > Secrets and variables > Actions | |
| # 2.2 In repository secrets, add a secret named WORKFLOW_TOKEN | |
| # The added secret will be used here | |
| token: ${{ secrets.WORKFLOW_TOKEN }} | |
| - uses: cachix/install-nix-action@v27 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-24.11 | |
| - run: nix-build .github/workflows/gen-workflows | |
| - name: make change to workflows file | |
| run: | | |
| cp result .github/workflows/generated-build-deterload.yml | |
| git add . | |
| git config --global user.name xieby1-gen-workflows | |
| git config --global user.email "[email protected]" | |
| git commit -m "gen workflows for $(git rev-parse HEAD)" | |
| git merge origin/actions -s ours -m "merge $(git rev-parse HEAD)" | |
| git push origin HEAD:actions |