@@ -72,21 +72,13 @@ jobs:
7272 git add --all
7373 git commit -am "chore(deps): update coraza.wasm to ${{ github.event.inputs.version }} (CRS ${{ steps.read_crs_tag.outputs.crs_tag }})"
7474 git push origin chore/update-coraza-wasm-${{ github.event.inputs.version }}
75- - name : Create Pull Request on MAIF/otoroshi
76- uses : peter-evans/create-pull-request@v7
77- with :
78- token : ${{ secrets.OTOROSHI_PAT }}
79- path : ./otoroshi
80- commit-message : |
81- chore: update coraza.wasm to ${{ github.event.inputs.version }} (CRS ${{ steps.read_crs_tag.outputs.crs_tag }})
82- branch : chore/update-coraza-wasm-${{ github.event.inputs.version }}
83- title : " Update coraza.wasm to ${{ github.event.inputs.version }} (CRS ${{ steps.read_crs_tag.outputs.crs_tag }})"
84- body : |
85- This PR updates `otoroshi/conf/wasm/coraza.wasm` to the version built and released in
86- [MAIF/otoroshi-coraza-plugin] for:
87-
88- - plugin tag: `${{ github.event.inputs.version }}`
89- - CRS tag: `${{ steps.read_crs_tag.outputs.crs_tag }}`
90-
91- Download URL used:
92- `https://github.com/MAIF/otoroshi-coraza-plugin/releases/download/${{ github.event.inputs.version }}/coraza-${{ github.event.inputs.version }}-crs-${{ steps.read_crs_tag.outputs.crs_tag }}.wasm`
75+ curl -X POST https://api.github.com/repos/MAIF/otoroshi/pulls \
76+ -H "Authorization: Bearer ${{ secrets.OTOROSHI_PAT }}" \
77+ -H "Accept: application/vnd.github+json" \
78+ -H "Content-Type: application/json" \
79+ -d '{
80+ "title": "Update coraza.wasm to ${{ github.event.inputs.version }} (CRS ${{ steps.read_crs_tag.outputs.crs_tag }})",
81+ "head": "chore/update-coraza-wasm-${{ github.event.inputs.version }}",
82+ "base": "master",
83+ "body": "This PR updates `otoroshi/conf/wasm/coraza.wasm` to the version: ${{ github.event.inputs.version }} with CRS version: `${{ steps.read_crs_tag.outputs.crs_tag }}"
84+ }'
0 commit comments