Skip to content

Commit

Permalink
Merge pull request #352 from okp4/ci/notify-release
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux authored Sep 5, 2023
2 parents 19a7503 + 840ab44 commit 7ab00dc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/notify-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,21 @@ jobs:
"draft": "false"
}
}
update-schema:
runs-on: ubuntu-22.04
steps:
- name: Update schema repository
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/okp4/okp4-contract-schema/actions/workflows/68383422/dispatches'
method: 'POST'
customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.OKP4_TOKEN }}"}'
data: |-
{
"ref": "main",
"inputs": {
"ref": "${{ github.event.release.tag_name }}",
"draft": "false"
}
}
18 changes: 18 additions & 0 deletions .github/workflows/update-draft-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,21 @@ jobs:
"draft": "true"
}
}
update-schema:
runs-on: ubuntu-22.04
steps:
- name: Update draft docs repository
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/okp4/okp4-contract-schema/actions/workflows/68383422/dispatches'
method: 'POST'
customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.OKP4_TOKEN }}"}'
data: |-
{
"ref": "main",
"inputs": {
"version": "main",
"draft": "true"
}
}

0 comments on commit 7ab00dc

Please sign in to comment.