T6674: Action add trigger workflow to rebuild package #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger to build a deb package from repo | |
on: | |
pull_request_target: | |
types: | |
- closed | |
branches: | |
- circinus | |
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@circinus | |
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 }} |