Skip to content

Commit 93a539d

Browse files
Add Packagist ping step to workflow (#5)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Max Prilutskiy <maks.prilutskiy@gmail.com>
1 parent 4fd1cd7 commit 93a539d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,11 @@ jobs:
8989
run: |
9090
git tag v${{ steps.bump_version.outputs.new_version }}
9191
git push origin v${{ steps.bump_version.outputs.new_version }}
92+
93+
- name: Ping Packagist
94+
if: success() && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch')
95+
run: |
96+
echo "Pinging Packagist to update package..."
97+
curl -XPOST -H'content-type:application/json' \
98+
"https://packagist.org/api/update-package?username=lingodotdev&apiToken=${{ secrets.PACKAGIST_SAFE_API_TOKEN }}" \
99+
-d'{"repository":{"url":"https://github.com/lingodotdev/sdk-php"}}'

0 commit comments

Comments
 (0)