summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@poessinger.com>2024-09-14 15:32:16 +0200
committerGitHub <noreply@github.com>2024-09-14 15:32:16 +0200
commit523c56f2840f6f7391372c01dbb22eaf8fabf95a (patch)
treedaf1781b64e7b241c75ca9eaf6e5a9e3205524d1
parentc6141d97c85b2902d45b12ec81d8e4a48da03519 (diff)
parent54f47ff2ac495001c7a81a1cfe969dc62832c1e3 (diff)
downloadlibvyosconfig-current.tar.gz
libvyosconfig-current.zip
Merge pull request #15 from sever-sever/T6674-trigger-rebuils-currentHEADcurrent
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 0000000..37ec832
--- /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:
+ - current
+ 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@current
+ 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 }}