-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add publish workflow with workflow_dispatch (#824)
Co-authored-by: Frederik Prijck <[email protected]>
- Loading branch information
1 parent
6a0e119
commit 9c6f8f7
Showing
5 changed files
with
61 additions
and
4 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,44 @@ | ||
name: Return the release notes extracted from the PR body | ||
|
||
# | ||
# Returns the release notes from the content of a pull request linked to a release branch. It expects the branch name to be in the format release/vX.Y.Z, release/X.Y.Z, release/vX.Y.Z-beta.N. etc. | ||
# | ||
# TODO: Remove once the common repo is public. | ||
# | ||
inputs: | ||
version : | ||
required: true | ||
repo_name: | ||
required: false | ||
repo_owner: | ||
required: true | ||
token: | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- id: get_release_notes | ||
shell: bash | ||
run: | | ||
RELEASE_PR_BRANCH="release/$VERSION" | ||
API_URL="https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls" | ||
RELEASE_NOTES=$(curl -G \ | ||
-H "Accept: application/json" \ | ||
-H "Authorization: token $GITHUB_TOKEN" \ | ||
--data-urlencode "state=all" \ | ||
--data-urlencode "head=$REPO_OWNER:$RELEASE_PR_BRANCH" \ | ||
"$API_URL" | jq -r ".[0].body" | ||
) | ||
{ | ||
echo 'RELEASE_NOTES<<EOF' | ||
echo $RELEASE_NOTES | ||
echo 'EOF' | ||
} >> $GITHUB_ENV | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.token }} | ||
REPO_OWNER: ${{ inputs.repo_owner }} | ||
REPO_NAME: ${{ inputs.repo_name }} | ||
VERSION: ${{ inputs.version }} |
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
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
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"files": { | ||
"src/networking/telemetry.ts": [] | ||
"src/networking/telemetry.ts": [], | ||
".version": [] | ||
}, | ||
"postbump": "node scripts/jsdocs.js" | ||
} |
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 @@ | ||
v3.1.0 |