This is an automated email from the ASF dual-hosted git repository.

dfoulks pushed a commit to branch dfoulks/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git


The following commit(s) were added to refs/heads/dfoulks/pelican-gha by this 
push:
     new 5871e63  Testing new workflow trigger method
5871e63 is described below

commit 5871e63b099b5cc14ddf3f544d615018235f01d5
Author: Drew <dfou...@apache.org>
AuthorDate: Thu May 30 17:57:08 2024 -0400

    Testing new workflow trigger method
---
 .github/workflows/build-pelican.yml | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/build-pelican.yml 
b/.github/workflows/build-pelican.yml
index 60df25c..ab79003 100644
--- a/.github/workflows/build-pelican.yml
+++ b/.github/workflows/build-pelican.yml
@@ -1,16 +1,19 @@
 name: Build a Pelican Website
 on:
- push:
- branches: [ 'master' ]
- workflow_dispatch:
+  workflow_dispatch:
+    inputs:
+      branch:
+        description: 'Pelican source branch'
+        required: false
+        default: dfoulks/pelican-gha
 jobs:
- build-pelican:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- with:
- ref: 'master'
- - uses: apache/infrastructure-actions/pelican@main
- with:
- destination: 'asf-site'
- gfm: 'true'
+  build-pelican:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          ref: ${{ github.ref }}
+      - uses: apache/infrastructure-actions/pelican@main
+        with:
+          destination: ${{ github.ref }}-site
+          gfm: true

Reply via email to