Skip to content

Commit

Permalink
SECURITY-4686: fix deploy condition
Browse files Browse the repository at this point in the history
Co-authored-by: David Szigecsan <david.szigecsan@emarsys.com>
  • Loading branch information
Eugeniu David and sigee committed Aug 26, 2021
1 parent d5391ff commit c8cdfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
- name: Test
run: composer test
- name: Deploy
if: ${{ matrix.php-versions }} == '7.3' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
curl -XPOST -f -H'content-type:application/json' "https://packagist.org/api/update-package?username=emartech&apiToken=${{secrets.PACKAGIST_API_TOKEN}}" -d"{\"repository\":{\"url\":\"${{secrets.PACKAGIST_PACKAGE_URL}}\"}}"

0 comments on commit c8cdfcb

Please sign in to comment.