[image] Bump bitnami/kubectl from 1.31.1 to 1.31.2 #44
Workflow file for this run
This file contains 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 auto-approve | |
on: pull_request_target | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-22.04 | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Enable auto-merge for Dependabot PRs | |
if: ${{contains(steps.metadata.outputs.dependency-names, 'kubectl')}} | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- uses: actions/checkout@v4 | |
if: ${{contains(steps.metadata.outputs.dependency-names, 'kubectl')}} | |
with: | |
fetch-depth: 0 | |
ref: "${{github.event.pull_request.head.sha}}" | |
- name: Parse version | |
if: ${{contains(steps.metadata.outputs.dependency-names, 'kubectl')}} | |
run: | | |
cat Dockerfile|grep "FROM bitnami/kubectl"| sed -e 's/.*kubectl\:\([0-9.]\+\).*/\1/' > version.txt | |
echo "KUBECTL_VERSION=$(cat version.txt | tr -d '\n')" >> $GITHUB_ENV | |
echo ">> Version: $(cat version.txt | tr -d '\n')" | |
- name: Create new release for a new kubectl release | |
if: ${{contains(steps.metadata.outputs.dependency-names, 'kubectl')}} | |
run: gh release create v${{ env.KUBECTL_VERSION }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_RW_TOKEN }} |