Removing hardcoded hashes from Nix flake. #598
Workflow file for this run
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: Create draft PR for updated OpenROAD submodule | |
| on: | |
| schedule: | |
| - cron: "0 8 * * *" | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code recursively | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Pull changes in OpenROAD submodule | |
| id: remote-update | |
| run: | | |
| cd tools/OpenROAD | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| echo "::set-output name=has_update::$(git --no-pager diff --name-only origin/master..HEAD)" | |
| git checkout master | |
| git pull | |
| - if: "steps.remote-update.outputs.has_update != ''" | |
| steps: | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Update flake.lock | |
| run: nix --extra-experimental-features "nix-command flakes" flake update openroad-abc-src openroad-opensta-src openroad-flake | |
| - name: Create Draft PR | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ github.token }} | |
| signoff: true | |
| delete-branch: true | |
| title: 'Update OpenROAD submodule' | |
| body: | | |
| Automated action to update tools/OpenROAD submodule and tighten CI rule checking. | |
| [ci:rules-tighten] | |
| labels: UpdateRules | |
| reviewers: | | |
| vvbandeira | |
| maliberty | |
| draft: true | |
| branch: update-openroad | |
| commit-message: | | |
| [BOT] Update OpenROAD submodule |