Skip to content

Commit

Permalink
Merge pull request #3 from php/dispatch_workflows
Browse files Browse the repository at this point in the history
Add dispatch workflows
  • Loading branch information
shivammathur authored Jan 27, 2025
2 parents 6e92372 + ec73383 commit 1baaadf
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pecl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run tests

on:
workflow_dispatch:
inputs:
url:
description: 'Artifact URL'
extension:
description: 'Extension Name'
ref:
description: 'Extension Ref'
jobs:
test:
runs-on: ubuntu-latest

steps:
- run: |
curl \
--requests POST \
--location https://downloads.php.net/pecl \
--header 'Authorization: Bearer ${{ secrets.AUTH_TOKEN }}' \
--data '{ "url": "${{ inputs.url }}", "extension": "${{ inputs.extension }}", "ref": "${{ inputs.ref }}" }'
19 changes: 19 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run tests

on:
workflow_dispatch:
inputs:
url:
description: 'Artifact URL'

jobs:
test:
runs-on: ubuntu-latest

steps:
- run: |
curl \
--requests POST \
--location https://downloads.php.net/php \
--header 'Authorization: Bearer ${{ secrets.AUTH_TOKEN }}' \
--data '{ "url": "${{ inputs.url }}", "token": "${{ secrets.TOKEN }}" }'
37 changes: 37 additions & 0 deletions .github/workflows/winlibs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run tests

on:
workflow_dispatch:
inputs:
library:
description: 'Library Name'
required: true
ref:
description: 'Library Ref'
required: true
workflow_run_id:
description: 'Workflow Run ID'
required: true
php_versions:
description: 'PHP Versions'
required: true
vs_version:
description: 'VS Versions'
required: true
vs_version_targets:
description: 'VS Version Targets'
required: true
stability:
description: 'Stability'
required: true
jobs:
test:
runs-on: ubuntu-latest

steps:
- run: |
curl \
--requests POST \
--location https://downloads.php.net/winlibs \
--header 'Authorization: Bearer ${{ secrets.AUTH_TOKEN }}' \
--data '{ "library": "${{ inputs.library }}", "ref": "${{ inputs.ref }}", "workflow_run_id": "${{ inputs.workflow_run_id }}", "php_versions": "${{ inputs.php_versions }}", "vs_version": "${{ inputs.vs_version }}", "vs_version_targets": "${{ inputs.vs_version_targets }}", "stability": "${{ inputs.stability }}", "token": "${{ secrets.TOKEN }}" }'

0 comments on commit 1baaadf

Please sign in to comment.