chore(release): webentor-core 0.14.0 #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: split-webentor-core | |
| on: | |
| push: | |
| tags: | |
| - 'core-v*' | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Tag to mirror (defaults to current ref tag)' | |
| required: false | |
| jobs: | |
| split: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # Avoid inheriting github-actions[bot] credentials for git push. | |
| persist-credentials: false | |
| - name: Split and mirror core package | |
| env: | |
| CORE_MIRROR_REPO: ${{ secrets.CORE_MIRROR_REPO }} | |
| CORE_MIRROR_TOKEN: ${{ secrets.CORE_MIRROR_TOKEN }} | |
| INPUT_TAG: ${{ github.event.inputs.tag }} | |
| GITHUB_REF_NAME: ${{ github.ref_name }} | |
| run: bash scripts/split-webentor-core.sh | |
| # Notify Packagist so the Composer package updates without a webhook on the mirror repo. | |
| - name: Ping Packagist | |
| if: success() | |
| env: | |
| PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }} | |
| PACKAGIST_API_TOKEN: ${{ secrets.PACKAGIST_API_TOKEN }} | |
| run: | | |
| curl -s -X POST "https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_API_TOKEN}" \ | |
| -H 'Content-Type: application/json' \ | |
| -d '{"repository":{"url":"https://packagist.org/packages/webikon/webentor-core"}}' |