-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into galaxy_interactive_tools_high_availability
- Loading branch information
Showing
773 changed files
with
651,402 additions
and
7,913 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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
--> Please remove all this text before submitting your PR, it's just a checklist to help you :) <-- | ||
TODO: Describe your changes here.. | ||
|
||
1. Give your pull request a **good title** | ||
- e.g. "Fix typo in ansible-galaxy tutorial" or "Add new transcriptomics tutorial covering a new sequencing technology" | ||
2. Describe your changes in detail, list anything you still need some help with or things that are still TODO | ||
3. Check that your images are allowed to be re-hosted by the GTN! | ||
4. Still working on it? Make it a **Draft** pull request | ||
- Once it is ready, choose **Ready for Review** | ||
<!-- Contributor Checklist | ||
1. Give your pull request a descriptive title | ||
2. Describe your changes in detail at the top of this text box | ||
3. List anything you still need some help with or things that are still TODO | ||
4. Check that your images are allowed to be re-hosted by the GTN! | ||
5. Not ready for review yet? Make it a **Draft** pull request | ||
- Once you are done making changes, choose **Ready for Review** | ||
- Then the automated tests will run and we will know to review and merge it | ||
--> |
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
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
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
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
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
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
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,73 @@ | ||
name: "[Social] Autogenerate missing social media cards" | ||
|
||
on: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# We'll run this weekly at noon. | ||
- cron: '0 12 * * 0' | ||
workflow_dispatch: | ||
inputs: | ||
all_old: | ||
type: string | ||
description: If you want to re-generate ALL images set to a non-empty value | ||
|
||
jobs: | ||
runner-job: | ||
if: github.repository_owner == 'galaxyproject' | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
# Shallow should be fine for video | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 500 | ||
|
||
# BEGIN Dependencies | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
architecture: 'x64' | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y imagemagick optipng inkscape | ||
pip install requests awscli | ||
mkdir -p ~/.fonts/ | ||
wget https://galaxy-training.s3.amazonaws.com/social/recursive.ttf -O ~/.fonts/recursive.ttf | ||
fc-cache -rv | ||
# END Dependencies | ||
|
||
|
||
# We get the previous build ID to know how many videos were changed since | ||
# then. | ||
# | ||
# We *could* fetch the diff in the past N days but if a build fails for | ||
# any reason, we'd lose those changes permanently and things would never | ||
# get built. | ||
# | ||
# So instead we just track the last successfully built timestamp | ||
- name: Previous build ID | ||
id: build_id | ||
run: | | ||
echo "timestamp=$(curl https://galaxy-training.s3.amazonaws.com/social/timestamp.txt -f 2>/dev/null || echo none)" >> $GITHUB_ENV | ||
# Support regenerating all | ||
if [[ "${{ github.event.inputs.all_old }}" != "" ]]; then | ||
echo "timestamp=0" >> $GITHUB_ENV | ||
fi | ||
# The actual compilation process deposits everything in the ./social/ folder. | ||
# And requires fetching metadata from the live website (api/social-meta.json) | ||
- name: Build Social Media Cards | ||
run: | | ||
mkdir -p social/ | ||
python bin/social-cards.py $PREVIOUS_TIMESTAMP | ||
env: | ||
PREVIOUS_TIMESTAMP: ${{ env.timestamp }} | ||
|
||
# Deploy step, scary. | ||
- name: Build Social Media Cards | ||
run: | | ||
aws s3 cp --recursive ../gtn-social/ s3://galaxy-training/social/ | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: us-east-1 |
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
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 |
---|---|---|
|
@@ -25,3 +25,4 @@ plnmotmp*.json | |
# Planemo output for workflow autoupdate | ||
tools.yml | ||
api/** | ||
/.obsidian |
Oops, something went wrong.