summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-14 15:30:16 +0200
committerGitHub <noreply@github.com>2024-09-14 15:30:16 +0200
commit1fedb993e7f50b30b4232fb1a6c30261dc379543 (patch)
tree62d6880946d60118395560192eb1fd7596d1f924
parent10aa89ddb0d36dae87ba098ee9b52ebe981ce7f5 (diff)
parent2fee3fdf7ec854b87a94fda69fa94afff29ffdb9 (diff)
downloadvyos-cloud-init-1fedb993e7f50b30b4232fb1a6c30261dc379543.tar.gz
vyos-cloud-init-1fedb993e7f50b30b4232fb1a6c30261dc379543.zip
Merge pull request #83 from sever-sever/T6674-trigger-rebuils-circinus
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..7a6a974c
--- /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:
+ - circinus
+ 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@circinus
+ 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 }}