Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ jobs:
repository: "ROCm/TheRock"
ref: "compiler/amd-mainline"
fetch-depth: 10
- name: Update child workflows
run: |
# Define the regex pattern and replacement
REGEX_PATTERN='repository: "ROCm/TheRock"'
REPLACEMENT='repository: "ROCm/TheRock"\n ref: compiler/amd-mainline'

# Directory containing child workflows
WORKFLOW_DIR=".github/workflows"

# Loop through child YAML files and apply the regex replacement
for file in "$WORKFLOW_DIR"/*.yml; do
echo "Updating $file..."
sed -i "s|$REGEX_PATTERN|$REPLACEMENT|g" "$file"
done
- name: SHA of TheRock
run: |
git rev-parse HEAD
Expand All @@ -68,7 +82,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.number }}
run: |
echo "PR_LABELS=$(gh pr view ${PR_NUMBER} --json labels)" >> $GITHUB_ENV
echo "PR_LABELS=$(gh pr view ${PR_NUMBER} --repo ROCm/llvm-project --json labels)" >> $GITHUB_ENV

- name: Configuring CI options
id: configure
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
repository: "ROCm/TheRock"
ref: "compiler/amd-mainline"
sparse-checkout: build_tools
path: "prejob"

Expand All @@ -74,6 +75,7 @@ jobs:
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
repository: "ROCm/TheRock"
ref: "compiler/amd-mainline"

- name: Setting up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
Expand Down
Loading