Skip to content

Github workflow to test Galaxy Lab changes #8

Github workflow to test Galaxy Lab changes

Github workflow to test Galaxy Lab changes #8

Workflow file for this run

name: Check Lab HTTP status
on:
pull_request:
types: [opened, synchronize]
jobs:
fetch-urls:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install requests
run: pip install requests
- name: Get list of changed files
id: changed-files
run: |
git fetch origin main
git diff --name-only origin/main..HEAD > changed_files.txt
echo ""
echo "Changed files:"
cat changed_files.txt
- name: Post comment if matching changes found
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
USERNAME: ${{ github.actor }}
BRANCH_NAME: ${{ github.head_ref }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
python3 .github/scripts/post_lab_links.py