summaryrefslogtreecommitdiff
path: root/.github/workflows/trigger-rebuild-repo-package.yml
blob: d4c84fa8f7c67424d68b30200a5592dba1c0fce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Trigger to build a deb package from repo

on:
  #pull_request:
  #  types:
  #    - closed
  #  branches:
  #    - current
  push:
    branches:
      - sever-sever
  workflow_dispatch:

jobs:
  trigger-build:
    #if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
    #runs-on: ubuntu-latest
    #  - 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: $(basename ${{ github.repository }})
        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 }}