Skip to content

Add auto update package on push workflow #1

Add auto update package on push workflow

Add auto update package on push workflow #1

Workflow file for this run

name: Update Packagist
on:
push:
branches:
- master
jobs:
update-packagist:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Update Packagist
env:
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
run: |
curl -X POST \
-H "Content-Type:application/json" \
-d '{"username": "${{ env.PACKAGIST_USERNAME }}", "apiToken": "${{ env.PACKAGIST_TOKEN }}"}' \
https://packagist.org/api/update/zuko/flex2cell