summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/trigger-rebuild-repo-package.yml19
1 files changed, 12 insertions, 7 deletions
diff --git a/.github/workflows/trigger-rebuild-repo-package.yml b/.github/workflows/trigger-rebuild-repo-package.yml
index d4c84fa8f..d8427fa45 100644
--- a/.github/workflows/trigger-rebuild-repo-package.yml
+++ b/.github/workflows/trigger-rebuild-repo-package.yml
@@ -12,17 +12,22 @@ on:
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:
- #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 }}
+ needs: get_repo_name
uses: vyos/vyos-workflow-testing/.github/workflows/trigger-package-build.yml@main
with:
branch: ${{ github.ref_name }}
- package_name: $(basename ${{ github.repository }})
+ package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }}
REF: main # optinal because the default value is main
secrets:
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}