From 087d032446a2f9b77d73a251682c036ecce88dfa Mon Sep 17 00:00:00 2001 From: "David E. Bernholdt" Date: Wed, 27 Mar 2024 17:10:53 -0400 Subject: [PATCH] Add workflow to create a PR for updates to the HPC-BP webinar curated content article --- .github/workflows/hpcbp-cc-pr.yml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/hpcbp-cc-pr.yml diff --git a/.github/workflows/hpcbp-cc-pr.yml b/.github/workflows/hpcbp-cc-pr.yml new file mode 100644 index 0000000000..d2d0705f62 --- /dev/null +++ b/.github/workflows/hpcbp-cc-pr.yml @@ -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 + \ No newline at end of file