Skip to content

Commit

Permalink
Add workflow to create a PR for updates to the HPC-BP webinar curated…
Browse files Browse the repository at this point in the history
… content article
  • Loading branch information
bernhold committed Mar 27, 2024
1 parent 69d675d commit 087d032
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/hpcbp-cc-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Update HPC Best Practices webinar series curated content from ideas-productivity.org site
name: Update hpcbp-webinars-cc from ideas-productivity.org

on:
workflow_dispatch:

jobs:
hpcbp-cc-pr:
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v4

# - name: Check the file is there
# run: |
# ls -l CuratedContent/hpcbp-webinars-cc.md
# cp CuratedContent/hpcbp-webinars-cc.md CuratedContent/hpcbp-webinars-cc.md.bak

- name: Download the new curated content article
uses: carlosperate/download-file-action@v2
with:
file-url: https://ideas-productivity.org/internal/hpcbp-webinars/hpcbp-webinars-cc.md
location: 'CuratedContent'
file-name: hpcbp-webinars-cc.md

# - name: Check that the file has been updated
# run: |
# ls -l CuratedContent/hpcbp-webinars-cc.md
# diff -c CuratedContent/hpcbp-webinars-cc.md CuratedContent/hpcbp-webinars-cc.md.bak || :

- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
title: Update HPC-BP webinar curated content
branch: ${{ github.actor }}-hpcbp-webinars-cc-update
branch-suffix: timestamp
assignees: ${{ github.actor }}
commit-message: "Updating HPC-BP webinar curated content from the ideas-productivity.org website"
body: "Updating HPC-BP webinar curated content from the ideas-productivity.org website"
labels: |
content: curated
content: updates

0 comments on commit 087d032

Please sign in to comment.