diff --git a/.github/workflows/auto-pr.yaml b/.github/workflows/auto-pr.yaml new file mode 100644 index 0000000..17e76fb --- /dev/null +++ b/.github/workflows/auto-pr.yaml @@ -0,0 +1,22 @@ +name: Staging Auto-PR +on: + create: + branches: ['ci-update'] + +jobs: + pull-request: + name: Open PR to main + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + name: checkout + + - uses: repo-sync/pull-request@v2 + name: pull-request + with: + destination_branch: "main" + pr_title: "Pulling ${{ github.ref }} into main" + pr_body: "👑 *An automated PR*" + pr_reviewer: "kingdonb" + pr_draft: true + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/kluster/whoami/deploymentreference.yaml b/kluster/whoami/deploymentreference.yaml index 3ebd6a9..ebf3c59 100644 --- a/kluster/whoami/deploymentreference.yaml +++ b/kluster/whoami/deploymentreference.yaml @@ -6,15 +6,8 @@ metadata: spec: force: true interval: 1m0s - path: .apps/whoami/overlays/main + path: ./apps/whoami/overlays/main prune: false sourceRef: kind: GitRepository name: flux-system - - - -# apiVersion: kustomize.toolkit.fluxcd.io/v1 -# kind: HelmRelease -# ... -