summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-09-18 19:01:28 +0300
committerGitHub <noreply@github.com>2024-09-18 19:01:28 +0300
commitedd04880d6e9227160350cf7cb34df78c0377d05 (patch)
treef909b35a98969c8259f91be7416c5585df9ae08b
parentfb6fdbb1deb3901391548fd723914d5b2d3752fc (diff)
parentd3c0bdaa11404c147b55a81520a4462597191bb3 (diff)
downloadvyos-cloud-init-sagitta.tar.gz
vyos-cloud-init-sagitta.zip
Merge pull request #84 from sever-sever/T6674-trigger-rebuild-sagsagitta
T6674: Action add trigger workflow to rebuild package
-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 00000000..f267a631
--- /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 }}