-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MyPC
committed
Dec 14, 2023
1 parent
71507d9
commit 4d86234
Showing
1 changed file
with
12 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -20,6 +20,17 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: "echo latest release: '${{ steps.get_latest_release.outputs.data }}'" | ||
- run: "echo latest release version: '${{ steps.get_latest_release.outputs.data.name }}'" | ||
- run: "echo latest release Version : '${{ steps.get_latest_release.outputs.data }}' | jq -r '.name'" | ||
- run: "echo Release could not be found. Request failed with status '${{ steps.get_release.outputs.status }}'" | ||
if: ${{ failure() }} | ||
- name: Update update.json | ||
run: | | ||
VERSION=$(echo '${{ steps.get_latest_release.outputs.data }}' | jq -r '.tag_name') | ||
CHANGELOG=$(echo '${{ steps.get_latest_release.outputs.data }}' | jq -r '.html_url') | ||
jq '.version = $VERSION | .changelog = $CHANGELOG' update.json > temp.json && mv temp.json update.json | ||
- name: Commit and push | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -am "Update update.json" | ||
git push origin dev |