Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T6674: Action add trigger workflow to rebuild package #87

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/trigger-rebuild-repo-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Trigger to build a deb package from repo

on:
pull_request_target:
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 }}
secrets:
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
PAT: ${{ secrets.PAT }}
Loading