From 7be7cafe694f18c302de884ae7413288417d53e2 Mon Sep 17 00:00:00 2001 From: Deanna Garcia Date: Fri, 3 Feb 2023 10:15:51 -0800 Subject: [PATCH] Bug fixes to update PHP repo GHA. Pull the first index with jq instead of looking for "main" Git add all artifacts since "git commit -a" doesn't add new ones PiperOrigin-RevId: 506933714 --- .github/workflows/update_php_repo.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_php_repo.yml b/.github/workflows/update_php_repo.yml index ed2199ffa3..d62d8c1a72 100644 --- a/.github/workflows/update_php_repo.yml +++ b/.github/workflows/update_php_repo.yml @@ -29,7 +29,7 @@ jobs: git config user.email "protobuf-team-bot@google.com" - name: Get PHP Version 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_tag=v$version echo "VERSION=$version" >> $GITHUB_ENV @@ -42,7 +42,8 @@ jobs: rm -rf protobuf - name: Push Changes run: | - git commit -a -m "${{ env.VERSION }} sync" + git add --all + git commit -m "${{ env.VERSION }} sync" git push --force origin master git tag -a ${{ env.VERSION_TAG }} -m "Tag release ${{ env.VERSION_TAG }}" git push origin ${{ env.VERSION_TAG }}