mirror of
https://github.com/filp/whoops.git
synced 2026-11-25 05:09:31 +00:00
23 lines
644 B
YAML
23 lines
644 B
YAML
name: Packagist
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '[0-9]+.[0-9]+.[0-9]+*'
|
|
|
|
jobs:
|
|
update:
|
|
name: Update Packagist
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Notify Packagist
|
|
env:
|
|
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
|
|
PACKAGIST_API_TOKEN: ${{ secrets.PACKAGIST_API_TOKEN }}
|
|
run: |
|
|
curl --fail-with-body -sS -X POST \
|
|
-H 'Content-Type: application/json' \
|
|
"https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_API_TOKEN}" \
|
|
-d '{"repository":{"url":"https://packagist.org/packages/filp/whoops"}}'
|