Author: Shivam Mathur (shivammathur)
Date: 2025-01-27T16:52:58+05:30

Commit: 
https://github.com/php/web-downloads/commit/ec73383c5536b75473258acd3af9f45906f571d0
Raw diff: 
https://github.com/php/web-downloads/commit/ec73383c5536b75473258acd3af9f45906f571d0.diff

Add dispatch workflows

Changed paths:
  A  .github/workflows/pecl.yml
  A  .github/workflows/php.yml
  A  .github/workflows/winlibs.yml


Diff:

diff --git a/.github/workflows/pecl.yml b/.github/workflows/pecl.yml
new file mode 100644
index 0000000..db3fc1b
--- /dev/null
+++ b/.github/workflows/pecl.yml
@@ -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 }}" }'
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
new file mode 100644
index 0000000..60c9f91
--- /dev/null
+++ b/.github/workflows/php.yml
@@ -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 
}}" }'
diff --git a/.github/workflows/winlibs.yml b/.github/workflows/winlibs.yml
new file mode 100644
index 0000000..e499c16
--- /dev/null
+++ b/.github/workflows/winlibs.yml
@@ -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 }}" }'

Reply via email to