updates
This commit is contained in:
parent
ca07122ee6
commit
cfe4f821c9
2 changed files with 105 additions and 0 deletions
26
.github/workflows/update.yml
vendored
26
.github/workflows/update.yml
vendored
|
|
@ -77,6 +77,18 @@ jobs:
|
|||
--base main \
|
||||
--head ${{ env.BRANCH_NAME }}
|
||||
|
||||
- name: Create Hydra jobset
|
||||
if: steps.update-flake.outputs.CHANGED == 'true'
|
||||
uses: ./.github/actions/create-hydra-jobset
|
||||
with:
|
||||
hydra_instance: ${{ env.HYDRA_INSTANCE }}
|
||||
hydra_project: ${{ env.HYDRA_PROJECT }}
|
||||
hydra_jobset: ${{ env.HYDRA_JOBSET }}
|
||||
hydra_username: ${{ secrets.HYDRA_USERNAME }}
|
||||
hydra_password: ${{ secrets.HYDRA_PASSWORD }}
|
||||
flake_uri: "github:${{ github.repository }}/${{ env.BRANCH_NAME }}"
|
||||
description: "PR #${{ steps.create-pr.outputs.pr_number }} - Auto-update flake dependencies"
|
||||
|
||||
- name: Trigger Hydra build
|
||||
if: steps.update-flake.outputs.CHANGED == 'true'
|
||||
uses: ./.github/actions/trigger-hydra-build
|
||||
|
|
@ -98,6 +110,13 @@ jobs:
|
|||
hydra_username: ${{ secrets.HYDRA_USERNAME }}
|
||||
hydra_password: ${{ secrets.HYDRA_PASSWORD }}
|
||||
|
||||
- name: Approve PR
|
||||
if: steps.update-flake.outputs.CHANGED == 'true' && steps.wait-for-build.outputs.BUILD_SUCCESS == 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh pr review ${{ steps.create-pr.outputs.pr_number }} --approve --body "Automated approval: Hydra build succeeded"
|
||||
|
||||
- name: Merge PR if build succeeds
|
||||
if: steps.update-flake.outputs.CHANGED == 'true' && steps.wait-for-build.outputs.BUILD_SUCCESS == 'true'
|
||||
env:
|
||||
|
|
@ -168,6 +187,13 @@ jobs:
|
|||
hydra_username: ${{ secrets.HYDRA_USERNAME }}
|
||||
hydra_password: ${{ secrets.HYDRA_PASSWORD }}
|
||||
|
||||
- name: Approve PR
|
||||
if: steps.update-flake.outputs.CHANGED == 'true' && steps.wait-for-build.outputs.BUILD_SUCCESS == 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh pr review ${{ needs.check-existing-pr.outputs.pr_number }} --approve --body "Automated approval: Hydra build succeeded"
|
||||
|
||||
- name: Merge PR if build succeeds
|
||||
if: steps.update-flake.outputs.CHANGED == 'true' && steps.wait-for-build.outputs.BUILD_SUCCESS == 'true'
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue