From de00f6cb93ee46b6f2b5038c5566b3cc09e74e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ayta=C3=A7=20Kayadelen?= Date: Mon, 30 Oct 2023 17:04:49 +0100 Subject: [PATCH] change json changer library --- .github/workflows/timetstamp.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/timetstamp.yml b/.github/workflows/timetstamp.yml index c2154c6..7f2b1c1 100644 --- a/.github/workflows/timetstamp.yml +++ b/.github/workflows/timetstamp.yml @@ -35,8 +35,22 @@ jobs: id: date run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S.%f%z')" - - name: Update json-values description - uses: restack/update-json-values-action@v1.0.0 + - name: Update package.json version + uses: jossef/action-set-json-field@v2.1 with: file: OnlineSettings.json - values: "{'OnlineSettingsTime': '${{ steps.date.outputs.date }}'}" + field: OnlineSettingsTime + value: ${{ steps.date.outputs.date }} + + - name: Commit files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add -A + git commit -m "update timestamp ${{ steps.semantic_release_info.outputs.git_tag }}" + + - name: Push changes + uses: ad-m/github-push-action@v0.6.0 + with: + github_token: ${{ github.token }} + tags: true