diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-06-19 20:13:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 20:13:00 +0200 |
| commit | 8f61bbd545a85391083439202ab9839311cd3a08 (patch) | |
| tree | 918254e73b210feed888ec11eec286420dc8b3b5 /.github/workflows | |
| parent | 46d6c0f88460fee556e38dbfba83c9029b1c78c6 (diff) | |
| parent | b84e0b26de0ff33952ee783f3949cb6b3b3ed12f (diff) | |
| download | libpam-radius-auth-8f61bbd545a85391083439202ab9839311cd3a08.tar.gz libpam-radius-auth-8f61bbd545a85391083439202ab9839311cd3a08.zip | |
Merge pull request #14 from kumvijaya/current
T7565: enabled PR mirroring
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/cleanup-mirror-pr-branch.yml | 16 | ||||
| -rw-r--r-- | .github/workflows/mirror-pr-and-sync.yml | 21 | ||||
| -rw-r--r-- | .github/workflows/trigger-pr-mirror-repo-sync.yml | 18 |
3 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/cleanup-mirror-pr-branch.yml b/.github/workflows/cleanup-mirror-pr-branch.yml new file mode 100644 index 0000000..a62e44b --- /dev/null +++ b/.github/workflows/cleanup-mirror-pr-branch.yml @@ -0,0 +1,16 @@ +name: Cleanup pr mirror branch + +on: + pull_request: + types: [closed] + branches: + - current + +permissions: + contents: write + +jobs: + call-delete-branch: + if: github.repository_owner != 'vyos' + uses: vyos/.github/.github/workflows/cleanup-mirror-pr-branch.yml@current + secrets: inherit diff --git a/.github/workflows/mirror-pr-and-sync.yml b/.github/workflows/mirror-pr-and-sync.yml new file mode 100644 index 0000000..120e116 --- /dev/null +++ b/.github/workflows/mirror-pr-and-sync.yml @@ -0,0 +1,21 @@ +name: Create Mirror PR and Repo Sync +on: + workflow_dispatch: + inputs: + sync_branch: + description: 'branch to sync' + required: true + type: string + +permissions: + pull-requests: write + contents: write + +jobs: + call-mirror-pr-and-sync: + if: github.repository_owner != 'vyos' + uses: VyOS-Networks/vyos-reusable-workflows/.github/workflows/mirror-pr-and-sync.yml@main + with: + sync_branch: ${{ inputs.sync_branch }} + secrets: + PAT: ${{ secrets.PAT }} diff --git a/.github/workflows/trigger-pr-mirror-repo-sync.yml b/.github/workflows/trigger-pr-mirror-repo-sync.yml new file mode 100644 index 0000000..978be05 --- /dev/null +++ b/.github/workflows/trigger-pr-mirror-repo-sync.yml @@ -0,0 +1,18 @@ +name: Trigger Mirror PR and Repo Sync +on: + pull_request_target: + types: + - closed + branches: + - current + +permissions: + pull-requests: write + contents: write + issues: write + +jobs: + call-trigger-mirror-pr-repo-sync: + if: github.repository_owner == 'vyos' && github.event.pull_request.merged == true + uses: vyos/.github/.github/workflows/trigger-pr-mirror-repo-sync.yml@current + secrets: inherit |
