Skip to content

[rabbitmq] add 4.0 #8086

[rabbitmq] add 4.0

[rabbitmq] add 4.0 #8086

name: Dependabot auto-merge release-updates
on: pull_request
# Based on https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- id: metadata
name: Dependabot metadata
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Clone self repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
ref: ${{ github.head_ref }}
submodules: true
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
with:
python-version: '3.11'
- name: Install Python Dependencies
run: pip install -r '_data/release-data/requirements.txt'
- id: latest
name: Auto-update products
run: python '_data/release-data/latest.py' -p 'products/' -d '_data/release-data/releases'
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
with:
file_pattern: products/*
commit_message: "🤖: Update latest release data"
status_options: '--untracked-files=no'
commit_author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
- name: Create PR
if: ${{ contains(steps.metadata.outputs.dependency-names, '_data/release-data') }}
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Comment on PR about missing releases
uses: github-actions-up-and-running/pr-comment@f1f8ab2bf00dce6880a369ce08758a60c61d6c0b # v1.0.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: |
:warning: The following recent releases are not listed:
```
${{ steps.latest.outputs.warning }}
```