Skip to content

Commit

Permalink
add missing WF
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed May 18, 2023
1 parent e5298ad commit 7c625ad
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/shortlinks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ jobs:
with:
title: Update Persistent uniform resource locators
branch-suffix: timestamp
commit-message: Compress Images
body: ${{ steps.calibre.outputs.markdown }}
commit-message: Update PURLs
52 changes: 52 additions & 0 deletions .github/workflows/update-libraries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Add missing data-library.yaml files
on:
workflow_dispatch:
schedule:
- cron: '45 0 * * 3'
jobs:
runner-job:
runs-on: ubuntu-latest
# Only run on main repo on and PRs that match the main repo.
if: |
github.repository == 'galaxyproject/training-material' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

# BEGIN Dependencies
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
- uses: actions/cache@v2
with:
path: |
vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install dependencies
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle pristine ffi
# END Dependencies

- name: Update Shortlinks
id: generate
run: |
grep zenodo_link: -R topics -l | grep '.md$' | xargs -r -n 1 ruby bin/update-data-library update --fragile
- name: Create Pull Request
# If it's not a Pull Request then commit any changes as a new PR.
if: |
github.event_name != 'pull_request'
uses: peter-evans/create-pull-request@v3
with:
title: Add missing data-library.yaml files
branch-suffix: timestamp
commit-message: Adds data-library.yaml for tutorials

0 comments on commit 7c625ad

Please sign in to comment.