Skip to content

feat(message_bus): create message_bus interface and basic impl for IggyMessageBus #145

feat(message_bus): create message_bus interface and basic impl for IggyMessageBus

feat(message_bus): create message_bus interface and basic impl for IggyMessageBus #145

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Update licenses for Dependabot PRs
on:
pull_request_target:
paths:
- "Cargo.toml"
- "Cargo.lock"
- "**/Cargo.toml"
permissions:
contents: write
pull-requests: write
jobs:
update-licenses:
name: Update DEPENDENCIES.md
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Rust with cache
uses: ./.github/actions/utils/setup-rust-with-cache
with:
cache-targets: false # Only cache registry and git deps, not target dir (sccache handles that)
show-stats: true
- name: Install cargo-license
run: cargo install cargo-license
- name: Update DEPENDENCIES.md
run: ./scripts/ci/licenses-list.sh --update
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add DEPENDENCIES.md
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore(deps): update DEPENDENCIES.md"
git push
fi