Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
evgsentrium authored Oct 8, 2024
1 parent b27e920 commit bc6b330
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/test-trigger-call.yml
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/trigger-vpp-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ secrets.REMOTE_OWNER }}/${{ secrets.REMOTE_REUSE_REPO }}/actions/workflows/build-package.yml/dispatches \
-d '{"ref": "main", "inputs":{"package_name":"vpp", "gpg_key_id": "${{ secrets.GPG_KEY_ID }}", "package_branch": "current", "pat":"${{ secrets.PAT }}"}}'
-d '{"ref": "vpp-testing", "inputs":{"package_name":"vpp", "gpg_key_id": "${{ secrets.GPG_KEY_ID }}", "package_branch": "current", "pat":"${{ secrets.PAT }}"}}'

0 comments on commit bc6b330

Please sign in to comment.