Merge branch 'master' into badg/bam-node-discovery #2029
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: Dependabot PR | |
| # on: | |
| # pull_request: | |
| # branches: | |
| # - master | |
| # jobs: | |
| # metadata: | |
| # runs-on: ubuntu-24.04 | |
| # if: github.actor == 'dependabot[bot]' | |
| # outputs: | |
| # crate_name: ${{ steps.dependabot-metadata.outputs.dependency-names }} | |
| # new_version: ${{ steps.dependabot-metadata.outputs.new-version }} | |
| # old_version: ${{ steps.dependabot-metadata.outputs.previous-version }} | |
| # package_ecosystem: ${{ steps.dependabot-metadata.outputs.package-ecosystem }} | |
| # steps: | |
| # - name: Fetch Dependabot metadata | |
| # uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 | |
| # id: dependabot-metadata | |
| # dependabot-cargo: | |
| # needs: metadata | |
| # if: needs.metadata.outputs.package_ecosystem == 'cargo' | |
| # timeout-minutes: 10 | |
| # runs-on: ubuntu-24.04 | |
| # steps: | |
| # - name: Create github app token | |
| # uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| # id: app-token | |
| # with: | |
| # client-id: ${{ secrets.CLIENT_ID }} | |
| # private-key: ${{ secrets.PRIVATE_KEY }} | |
| # - name: Set git config | |
| # run: | | |
| # git config --global user.email "49699333+dependabot[bot]@users.noreply.github.com" | |
| # git config --global user.name "dependabot[bot]" | |
| # git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf https://github.com/ | |
| # env: | |
| # GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| # - name: checkout | |
| # uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| # with: | |
| # ref: ${{ github.event.pull_request.head.ref }} | |
| # token: ${{ steps.app-token.outputs.token }} | |
| # persist-credentials: false | |
| # - name: install anza-xtask | |
| # run: | | |
| # cargo install anza-xtask@0.2.3 --locked | |
| # - name: update code | |
| # env: | |
| # CRATE_NAME: ${{ needs.metadata.outputs.crate_name }} | |
| # OLD_VERSION: ${{ needs.metadata.outputs.old_version }} | |
| # NEW_VERSION: ${{ needs.metadata.outputs.new_version }} | |
| # run: | | |
| # echo "crate_name: $CRATE_NAME, old_version: $OLD_VERSION, new_version: $NEW_VERSION" | |
| # # Bump lockfiles before manifests: while the manifests still request the old | |
| # # version, cargo swaps just this node; a manifest-first edit leaves the locked | |
| # # version unsatisfiable, which unlocks all of crates.io and rewrites unrelated | |
| # # resolution choices. No-ops for semver-major bumps, handled by `tree` below. | |
| # ./scripts/cargo-for-all-lock-files.sh --ignore-exit-code -- update -p "$CRATE_NAME:$OLD_VERSION" --precise "$NEW_VERSION" | |
| # cargo anza-xtask update-crate --package "$CRATE_NAME" --from "$OLD_VERSION" --to "$NEW_VERSION" | |
| # ./scripts/cargo-for-all-lock-files.sh tree | |
| # - name: push | |
| # run: | | |
| # if [ -z "$(git status --porcelain)" ]; then | |
| # echo "✅ Nothing to update" | |
| # else | |
| # git add **/Cargo.toml | |
| # git add **/Cargo.lock | |
| # git commit -am "Update all workspaces" | |
| # git push | |
| # fi |