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 7c59e39 Added a step to set the reponame appropriately
7c59e39 is described below
commit 7c59e39db144c4e131ba2ef9508dc324d46ecbab
Author: Drew <[email protected]>
AuthorDate: Fri May 17 15:13:30 2024 -0400
Added a step to set the reponame appropriately
---
.github/workflows/build-pelican.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build-pelican.yml
b/.github/workflows/build-pelican.yml
index dfb4fb4..d91239b 100644
--- a/.github/workflows/build-pelican.yml
+++ b/.github/workflows/build-pelican.yml
@@ -27,9 +27,13 @@ jobs:
#######################
# END BUILD GFM BLOCK #
#######################
+ - name: Set Working Directory
+ ENV:
+ R: ${{ vars.GITHUB_REPOSITORY }}
+ run: echo "::set-output wd=fragment::${R##*}"
- name: Generate website from markdown
run: /usr/bin/env python3 -m pelican content -o output
- working-directory: ${{ vars.GITHUB_WORKSPACE }}/${{
vars.GITHUB_REPOSITORY.split('/')[-1] }}
+ working-directory: ${{ vars.GITHUB_WORKSPACE }}/${{
steps.split.outputs.fragment }}
- name: Open a PR against the staging branch
uses: peter-evans/[email protected]
with: