-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b27e920
commit bc6b330
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Trigger to build a deb package from repo | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- current | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trigger-build: | ||
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set variables | ||
run: | | ||
echo "PACKAGE_NAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV | ||
- name: Trigger build for ${{ env.PACKAGE_NAME }} | ||
uses: vyos/vyos-workflow-testing/.github/workflows/trigger-package-build.yml@main | ||
with: | ||
branch: ${{ github.ref_name }} | ||
package_name: ${{ env.PACKAGE_NAME }} | ||
REF: main # optinal because the default value is main | ||
secrets: | ||
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }} | ||
REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
PAT: ${{ secrets.PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters