diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-09-12 13:38:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 13:38:08 +0100 |
commit | 63f6ffc1603310bbea449042ad74c1cefd9776df (patch) | |
tree | f6a86679fca64ab2d52b70c2739328be1498769d /.github | |
parent | c02b1151e584ea6c0bca35ba6aa87504566f6949 (diff) | |
parent | 0b3bab95c19569a9556f9d455ee6ba5633b9b919 (diff) | |
download | vyos-cloud-init-63f6ffc1603310bbea449042ad74c1cefd9776df.tar.gz vyos-cloud-init-63f6ffc1603310bbea449042ad74c1cefd9776df.zip |
Merge pull request #81 from sever-sever/T6674-cloud-init
T6674: Add reusable forkflow trigger to build repo package
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/trigger-rebuild-repo-package.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/trigger-rebuild-repo-package.yml b/.github/workflows/trigger-rebuild-repo-package.yml new file mode 100644 index 00000000..d0936b57 --- /dev/null +++ b/.github/workflows/trigger-rebuild-repo-package.yml @@ -0,0 +1,33 @@ +name: Trigger to build a deb package from repo + +on: + pull_request: + types: + - closed + branches: + - current + 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@current + with: + branch: ${{ github.ref_name }} + 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 }} |