Skip to content

Production: ghcr.io/piny940/portfolio-admin:1.0.50 #1436

Production: ghcr.io/piny940/portfolio-admin:1.0.50

Production: ghcr.io/piny940/portfolio-admin:1.0.50 #1436

Workflow file for this run

name: FluxCD Auto-PR
on:
push:
branches:
- fluxcd/image-update
jobs:
create-and-merge-pr:
name: Open PR to main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout
- name: Create pull request
id: create_pr
run: |
PR_URL=$(gh pr create --base main --title "FluxCD Image Update Automation PR" \
--body ":crown: *An automated PR*" --head "${{ github.ref_name }}")
echo "pr_url=$PR_URL" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for FluxCD PRs
run: gh pr merge --auto --rebase --delete-branch --author-email "[email protected]" "${{ steps.create_pr.outputs.pr_url }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}