summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevhen Bondarenko <41889972+evgsentrium@users.noreply.github.com>2024-09-11 18:10:07 +0200
committerGitHub <noreply@github.com>2024-09-11 18:10:07 +0200
commitc0ea48ca36b8fb12238932575c6adaa5266eae57 (patch)
tree28d573a868a68986aec0efb72352b2f16e621c45
parent8163aa6f12d93790a8f3a44cca03b6cc48fb6c27 (diff)
downloadvyos-1x-c0ea48ca36b8fb12238932575c6adaa5266eae57.tar.gz
vyos-1x-c0ea48ca36b8fb12238932575c6adaa5266eae57.zip
testing
-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 }}