-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added workflow to trigger packaging action
- Loading branch information
1 parent
9c170cd
commit 5a76780
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |