Skip to content

Commit e2019fd

Browse files
authored
Merge pull request #213 from cass-community/bernhold-action-fix2
Correct file destination
2 parents cbda81f + b3bff74 commit e2019fd

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/hpcbp-event-pr.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
uses: carlosperate/download-file-action@v2
2626
with:
2727
file-url: https://raw.githubusercontent.com/ideas-productivity/ideas-productivity.github.io/refs/heads/main/_events/hpcbp-webinars/${{ inputs.event-file }}.md
28-
location: 'Events'
28+
location: '_events/hpcbp-webinars'
2929
file-name: ${{ inputs.event-file }}.md
3030

3131
# - name: Check the file is there
3232
# run: |
33-
# ls -l Events/${{ inputs.event-file }}.md || :
33+
# ls -l _events/hpcbp-webinars/${{ inputs.event-file }}.md || :
3434

3535
- name: Create pull request
3636
id: cpr
@@ -40,8 +40,8 @@ jobs:
4040
branch: ${{ github.actor }}-hpcbp-new-event
4141
branch-suffix: timestamp
4242
assignees: ${{ github.actor }}
43-
commit-message: "Adding new HPC-BP webinar event from the ideas-productivity.org website"
44-
body: "Adding new HPC-BP webinar event from the ideas-productivity.org website"
43+
commit-message: "Adding or updating HPC-BP webinar event from the ideas-productivity.org website"
44+
body: "Adding or updating HPC-BP webinar event from the ideas-productivity.org website"
4545
labels: |
4646
content: event
4747
@@ -51,10 +51,12 @@ jobs:
5151
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
5252
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
5353
54-
- name: Merge PR
55-
if: ${{ steps.cpr.outputs.pull-request-number }}
56-
env:
57-
GH_TOKEN: ${{ secrets.PR_MERGE_PAT }}
58-
run: |
59-
gh pr merge ${{ steps.cpr.outputs.pull-request-number }} --merge --auto --body "Automatically merging script-generated event"
54+
# Hold off on the auto-merge until we're confident that the rest is working properly
55+
# NOTE: requires special privs to merge PRs (expecting a "PR_MERGE_PAT" secret)
56+
# - name: Merge PR
57+
# if: ${{ steps.cpr.outputs.pull-request-number }}
58+
# env:
59+
# GH_TOKEN: ${{ secrets.PR_MERGE_PAT }}
60+
# run: |
61+
# gh pr merge ${{ steps.cpr.outputs.pull-request-number }} --merge --auto --body "Automatically merging script-generated event"
6062

0 commit comments

Comments
 (0)