Skip to content

Commit 09df58e

Browse files
committed
- fixed packagist notification script
1 parent edc5410 commit 09df58e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/packagist.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Packagist Auto Update
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update-packagist:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Notify Packagist
13+
env:
14+
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
15+
run: |
16+
curl -XPOST \
17+
-H "Content-Type: application/json" \
18+
-d "{\"repository\":{\"url\":\"https://github.com/${{ github.repository }}\"},\"token\":\"${PACKAGIST_TOKEN}\"}" \
19+
"https://packagist.org/api/update-package?username=baseciq"

0 commit comments

Comments
 (0)