summaryrefslogtreecommitdiff
path: root/.github/workflows/trigger-rebuild-repo-package.yml
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-18 16:07:41 +0200
committerGitHub <noreply@github.com>2024-09-18 16:07:41 +0200
commitb114dcec6ac7e549c3af5349bcf2c1d45b797315 (patch)
tree80ba2c9655b72981385eba3b7fa1a3457cec8f8e /.github/workflows/trigger-rebuild-repo-package.yml
parent7a71f27adbaaf52444062f9d2d2064ec0899c20b (diff)
parent2742d1ac2b882e45e7b993ed90450501ebf7af59 (diff)
downloadvyos-1x-b114dcec6ac7e549c3af5349bcf2c1d45b797315.tar.gz
vyos-1x-b114dcec6ac7e549c3af5349bcf2c1d45b797315.zip
Merge pull request #4083 from sever-sever/T6674-trigger-rebuild-sag
T6674: Action add trigger workflow to rebuild package
Diffstat (limited to '.github/workflows/trigger-rebuild-repo-package.yml')
-rw-r--r--.github/workflows/trigger-rebuild-repo-package.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/trigger-rebuild-repo-package.yml b/.github/workflows/trigger-rebuild-repo-package.yml
new file mode 100644
index 000000000..f267a6316
--- /dev/null
+++ b/.github/workflows/trigger-rebuild-repo-package.yml
@@ -0,0 +1,32 @@
+name: Trigger to build a deb package from repo
+
+on:
+ pull_request_target:
+ types:
+ - closed
+ branches:
+ - sagitta
+ workflow_dispatch:
+
+jobs:
+ get_repo_name:
+ runs-on: ubuntu-latest
+ outputs:
+ PACKAGE_NAME: ${{ steps.package_name.outputs.PACKAGE_NAME }}
+ steps:
+ - name: Set variables
+ id: package_name
+ run: |
+ echo "PACKAGE_NAME=$(basename ${{ github.repository }})" >> $GITHUB_OUTPUT
+
+ trigger-build:
+ needs: get_repo_name
+ uses: vyos/.github/.github/workflows/trigger-rebuild-repo-package.yml@sagitta
+ with:
+ branch: ${{ github.ref_name }}
+ package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }}
+ secrets:
+ REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
+ REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }}
+ GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
+ PAT: ${{ secrets.PAT }}