Skip to content

Commit 74e2271

Browse files
Refactor Github Action per b/485167538
1 parent 54a2e5c commit 74e2271

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/forked_pr_workflow_check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ jobs:
2727
steps:
2828
- run: >
2929
${{ github.event.pull_request.head.repo.full_name == 'protocolbuffers/protobuf' }} ||
30-
(echo "This pull request is from an unsafe fork (${{ github.event.pull_request.head.repo.full_name }}) and isn't allowed to modify workflow files!" && exit 1)
30+
(echo "This pull request is from an unsafe fork (${GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME}) and isn't allowed to modify workflow files!" && exit 1)
31+
env:
32+
GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}

.github/workflows/test_java.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ jobs:
8282
architecture: linux-x86_64
8383
- name: Move protoc into place and clean up
8484
run: |
85-
mv ${{ steps.build-protoc.outputs.protoc }} protoc
85+
mv ${STEPS_BUILD_PROTOC_OUTPUTS_PROTOC} protoc
8686
sudo rm -rf _build
87+
env:
88+
STEPS_BUILD_PROTOC_OUTPUTS_PROTOC: ${{ steps.build-protoc.outputs.protoc }}
8789
- name: Install snapshot version locally (not using generated pom.xml)
8890
run: |
8991
mvn -e -B -Dhttps.protocols=TLSv1.2 install -Dmaven.test.skip=true

.github/workflows/update_php_repo.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Push Changes
4444
run: |
4545
git add --all
46-
git commit --allow-empty -m "${{ env.VERSION }} sync"
46+
git commit --allow-empty -m "${VERSION} sync"
4747
git push --force origin master
48-
git tag -a ${{ env.VERSION_TAG }} -m "Tag release ${{ env.VERSION_TAG }}"
49-
git push origin ${{ env.VERSION_TAG }}
48+
git tag -a ${VERSION_TAG} -m "Tag release ${VERSION_TAG}"
49+
git push origin ${VERSION_TAG}

0 commit comments

Comments
 (0)