Skip to content

hardcoded the branch name for testing #16

hardcoded the branch name for testing

hardcoded the branch name for testing #16

name: Trigger to build a deb package from repo
on:
#pull_request:
# types:
# - closed
# branches:
# - current
push:
branches:
- sever-sever
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/vyos-workflow-testing/.github/workflows/trigger-package-build.yml@main
with:
branch: current
package_name: ${{ needs.get_repo_name.outputs.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 }}