Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
MyPC committed Dec 14, 2023
1 parent 71507d9 commit 4d86234
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d86234

Please sign in to comment.