Skip to content

Commit d884cbc

Browse files
committed
T6674: Action add trigger workflow to rebuild package
1 parent 8cd2221 commit d884cbc

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Trigger to build a deb package from repo
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- closed
7+
branches:
8+
- sagitta
9+
workflow_dispatch:
10+
11+
jobs:
12+
get_repo_name:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
PACKAGE_NAME: ${{ steps.package_name.outputs.PACKAGE_NAME }}
16+
steps:
17+
- name: Set variables
18+
id: package_name
19+
run: |
20+
echo "PACKAGE_NAME=$(basename ${{ github.repository }})" >> $GITHUB_OUTPUT
21+
22+
trigger-build:
23+
needs: get_repo_name
24+
uses: vyos/.github/.github/workflows/trigger-rebuild-repo-package.yml@sagitta
25+
with:
26+
branch: ${{ github.ref_name }}
27+
package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }}
28+
secrets:
29+
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
30+
REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }}
31+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
32+
PAT: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)