From cc6eee1243acbf308153acdea358f805c96b5ddf Mon Sep 17 00:00:00 2001 From: techno-243 Date: Wed, 17 Jan 2024 16:08:53 +0530 Subject: [PATCH] added workflow to trigger packaging action --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..412fd82 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Trigger OpenG2P Packaging Workflow + +on: + push: + workflow_dispatch: + +jobs: + trigger-packaging: + runs-on: ubuntu-latest + steps: + - name: set variables + run: | + echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV + - name: Invoke workflow in another repo with inputs + uses: aurelien-baudet/workflow-dispatch@v2 + with: + token: ${{ secrets.GIT_PUSH_TOKEN }} + repo: OpenG2P/openg2p-packaging + workflow: OpenG2P Odoo Package Dockers build + input: "{\"packageName\": \"${{ env.BRANCH_NAME }}\"}" + ref: main