Skip to content

Commit

Permalink
GH action for packagist update
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminJoergerMakaira committed Nov 15, 2024
1 parent f01cd00 commit 1812dd6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/updatePackagist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Update Packagist

on:
push:
tags:
- '*' # This matches all tags and will trigger the workflow only for tag pushes

jobs:
update-packagist:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Trigger Packagist update
run: |
curl -X POST "https://packagist.org/api/update-package?username=${{ env.PACKAGIST_USERNAME }}&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}"
env:
PACKAGIST_API_TOKEN: ${{ secrets.PACKAGIST_API_TOKEN }}

0 comments on commit 1812dd6

Please sign in to comment.