Github workflow to test Galaxy Lab changes #8
Workflow file for this run
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
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 |