Skip to content

Commit

Permalink
[DEVOPS-3045] Update deprecated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
svarnau committed Mar 8, 2024
1 parent 1608703 commit fb90b53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
if: github.event.client_payload.prerelease == 'false'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: "Configure git"
run: |
git config user.name 'YugaByte CI'
Expand All @@ -29,19 +29,19 @@ jobs:
exit 1
fi
echo "Extracted the version number '${version_number}'."
echo "::set-output name=yb_version::${version_number}"
echo "yb_version=${version_number}" >> "$GITHUB_ENV"
- name: "Update the version"
id: update-version
continue-on-error: true
run: |
.ci/update-version.sh '${{steps.extract-version.outputs.yb_version}}'
.ci/update-version.sh "${yb_version}"
- name: "Push the changes"
if: steps.update-version.outcome == 'success'
run: |
git status
git diff
git add variables.tf
git commit -m "Update the version to ${{steps.extract-version.outputs.yb_version}}"
git commit -m "Update the version to ${yb_version}"
git push origin ${{ github.ref }}
- name: "Status in case of update-version failure"
if: steps.update-version.outcome == 'failure'
Expand Down

0 comments on commit fb90b53

Please sign in to comment.