-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to create a PR for updates to the HPC-BP webinar curated…
… content article
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||