diff options
| author | Kai Michael Poppe <kmpoppe@users.noreply.github.com> | 2022-09-02 09:38:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-02 09:38:38 +0200 |
| commit | 702fdd8f2bc5bb5cbae036a573c347b00d3452db (patch) | |
| tree | e6e91194c30692971414bd115ea978da5b0c6c5a /.github | |
| parent | 613b1920b6c6745595b413191481265d8922ca13 (diff) | |
| download | BedrockConnect-702fdd8f2bc5bb5cbae036a573c347b00d3452db.tar.gz BedrockConnect-702fdd8f2bc5bb5cbae036a573c347b00d3452db.tar.bz2 BedrockConnect-702fdd8f2bc5bb5cbae036a573c347b00d3452db.zip | |
Update checkVersion action to include Release Notes (#333)
GitHub action pulls articles from the feedback.minecraft.net section via the ZenDesk API and matches the URL pattern that's in use since at least 1.17.10 to find the right article.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/checkversion.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/checkversion.yml b/.github/workflows/checkversion.yml index 1b78d38..d78d63d 100644 --- a/.github/workflows/checkversion.yml +++ b/.github/workflows/checkversion.yml @@ -20,6 +20,14 @@ jobs: LatestURL=$(grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*' $HOME/version.html) echo "::set-output name=downloadversion::$(echo "$LatestURL" | sed -e 's/.*server-//g' -e 's/.zip//')" + - name: Get Release Notes + id: dlversionnotes + run: | + RandNum=$((1 + $RANDOM % 5000)) + curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.$RandNum.212 Safari/537.36" -o $HOME/hc.html https://feedback.minecraft.net/api/v2/help_center/en-us/sections/360001186971/articles + titleversion=$(echo "${{ steps.dlversion.outputs.downloadversion }}" | sed -r 's/([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)/\1-\2-\3/g') + echo "::set-output name=downloadversionnotes::$(grep -o 'https://feedback.minecraft.net/hc/en-us/articles/[^"]*'${titleversion}'[^"]*' $HOME/hc.html)" + - uses: actions/checkout@v3 name: Checkout repo @@ -45,9 +53,11 @@ jobs: body: | ## New Bedrock Version ${{ steps.dlversion.outputs.downloadversion }} + Release Notes: ${{ steps.dlversionnotes.outputs.downloadversionnotes }} + - [X] Notify @Pugmatt @kmpoppe @Camotoy @CrafterPika - [ ] Update source code - - [ ] Update SUPPORTED-VERSION to the latest version + - [ ] Update [.github/assets/supportedVersion](../blob/master/.github/assets/supportedVersion) to the latest version labels: | enhancement |
