Skip to content

Commit

Permalink
Update plugin-infrastructure in composer.json too if the PR is not a …
Browse files Browse the repository at this point in the history
…fork.
  • Loading branch information
johnbillion committed Aug 13, 2024
1 parent 1db1b26 commit 392e21f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ jobs:
if [ -f .github/workflows/integration-tests.yml ]; then
sed -i 's|johnbillion/plugin-infrastructure/.github/workflows/reusable-integration-tests.yml@trunk|${{ env.HEAD_REPO }}/.github/workflows/reusable-integration-tests.yml@${{ env.SHA_REF }}|g' .github/workflows/integration-tests.yml
fi
if [ "${{ env.HEAD_REPO }}" == "johnbillion/plugin-infrastructure" ]; then
sed -i 's|"johnbillion/plugin-infrastructure": "dev-trunk"|"johnbillion/plugin-infrastructure": "dev-${{ env.HEAD_BRANCH }}"|g' composer.json
fi
env:
HEAD_BRANCH: ${{ fromJson( steps.pr-data.outputs.result ).head_branch }}
HEAD_REPO: ${{ fromJson( steps.pr-data.outputs.result ).head_repo }}
SHA_REF: ${{ fromJson( steps.pr-data.outputs.result ).head_sha }}

Expand Down

0 comments on commit 392e21f

Please sign in to comment.