Skip to content

Commit

Permalink
Update workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBeneteau committed Dec 2, 2024
1 parent 8126860 commit 96f8762
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test-self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
setup:
runs-on: self-hosted
outputs:
all_projects_matrix: ${{ steps.all-projects.outputs.all_projects_matrix }}
all_projects_matrix: ${{ steps.modified-projects.outputs.all_projects_matrix }}
modified_projects_matrix: ${{ steps.modified-projects.outputs.modified_projects_matrix }}
steps:
- name: Checkout repository
Expand All @@ -25,20 +25,22 @@ jobs:
run: |
python3 -m venv .venv
- name: Get all projects
id: all-projects
run: |
source .venv/bin/activate
python3 scripts/actions/all_projects.py
echo "all_projects_matrix=$(cat all_projects_matrix.json)" >> $GITHUB_OUTPUT
# - name: Get all projects
# id: all-projects
# run: |
# source .venv/bin/activate
# python3 scripts/actions/all_projects.py
# echo "all_projects_matrix=$(cat all_projects_matrix.json)" >> $GITHUB_OUTPUT

- name: Get modified projects
id: modified-projects
run: |
source .venv/bin/activate
BASE_REF="${{ github.base_ref }}" # Target branch of the PR
BASE_REF="${BASE_REF:-HEAD^}" # Previous commit on push to main
python3 scripts/actions/all_projects.py
python3 scripts/actions/modified_projects.py origin/$BASE_REF
echo "all_projects_matrix=$(cat all_projects_matrix.json)" >> $GITHUB_OUTPUT
echo "modified_projects_matrix=$(cat modified_projects_matrix.json)" >> $GITHUB_OUTPUT
build-all-projects:
Expand Down

0 comments on commit 96f8762

Please sign in to comment.