summaryrefslogtreecommitdiff
path: root/.github/workflows/trigger-rebuild-repo-package.yml
blob: f267a6316c42a9a2f5383165cda4b34367e7770c (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
32
name: Trigger to build a deb package from repo

on:
  pull_request_target:
    types:
      - closed
    branches:
      - sagitta
  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/.github/.github/workflows/trigger-rebuild-repo-package.yml@sagitta
    with:
      branch: ${{ github.ref_name }}
      package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }}
    secrets:
      REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
      REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }}
      GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
      PAT: ${{ secrets.PAT }}