summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-14 15:33:19 +0200
committerGitHub <noreply@github.com>2024-09-14 15:33:19 +0200
commit16176a31108dc1af1e1e6bec09687c436149f955 (patch)
tree38127a36205878e99065f70a7ac02abcf0656c39 /.github/workflows
parent59ce060c8523b5eb72ff0e89cb3e00833692cea1 (diff)
parent57ed5caa22f85764af44bc08767be8b73d7f64bb (diff)
downloadvyos-user-utils-16176a31108dc1af1e1e6bec09687c436149f955.tar.gz
vyos-user-utils-16176a31108dc1af1e1e6bec09687c436149f955.zip
Merge pull request #14 from sever-sever/T6674-trigger-rebuils-current
T6674: Action add trigger workflow to rebuild package
Diffstat (limited to '.github/workflows')
-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 }}