Merge pull request #11797 from deannagarcia/cherrypickPHP

Cherrypick bug fixes to update PHP repo GHA.
pull/11805/head
deannagarcia 2 years ago committed by GitHub
commit 9914d2ed06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .github/workflows/update_php_repo.yml

@ -29,7 +29,7 @@ jobs:
git config user.email "protobuf-team-bot@google.com" git config user.email "protobuf-team-bot@google.com"
- name: Get PHP Version - name: Get PHP Version
run: | run: |
unformatted_version=$( cat protobuf/version.json | jq -r '.main.languages.php' ) unformatted_version=$( cat protobuf/version.json | jq -r '.[].languages.php' )
version=${unformatted_version/-rc/RC} version=${unformatted_version/-rc/RC}
version_tag=v$version version_tag=v$version
echo "VERSION=$version" >> $GITHUB_ENV echo "VERSION=$version" >> $GITHUB_ENV
@ -42,7 +42,8 @@ jobs:
rm -rf protobuf rm -rf protobuf
- name: Push Changes - name: Push Changes
run: | run: |
git commit -a -m "${{ env.VERSION }} sync" git add --all
git commit -m "${{ env.VERSION }} sync"
git push --force origin master git push --force origin master
git tag -a ${{ env.VERSION_TAG }} -m "Tag release ${{ env.VERSION_TAG }}" git tag -a ${{ env.VERSION_TAG }} -m "Tag release ${{ env.VERSION_TAG }}"
git push origin ${{ env.VERSION_TAG }} git push origin ${{ env.VERSION_TAG }}

Loading…
Cancel
Save