Skip to content

Commit 094ec3c

Browse files
committed
Temporarily hardcode spec repo branch to devel
1 parent 81d6fa6 commit 094ec3c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/code_coverage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ jobs:
177177
uses: actions/checkout@v4
178178
with:
179179
repository: ansible-automation-platform/aap-openapi-specs
180-
ref: ${{ github.ref_name }}
180+
ref: devel # TEMPORARY: Use devel for testing
181181
path: spec-repo
182182
token: ${{ secrets.OPENAPI_SPEC_SYNC_TOKEN }}
183183

184184
- name: Check if branch exists in spec repo
185185
id: check_branch
186186
working-directory: spec-repo
187187
run: |
188-
BRANCH="${{ github.ref_name }}"
188+
BRANCH="devel" # TEMPORARY: hardcoded for testing
189189
190190
# Check if branch exists locally (already checked out)
191191
if git rev-parse --verify HEAD >/dev/null 2>&1; then
@@ -199,8 +199,8 @@ jobs:
199199
- name: Fail if branch doesn't exist
200200
if: steps.check_branch.outputs.branch_exists != 'true'
201201
run: |
202-
echo "##[error]❌ Branch '${{ github.ref_name }}' does not exist in the central spec repository."
203-
echo "##[error]Expected branch: ${{ github.ref_name }}"
202+
echo "##[error]❌ Branch 'devel' does not exist in the central spec repository."
203+
echo "##[error]Expected branch: devel"
204204
echo "##[error]This branch must be created in the spec repo before specs can be synced."
205205
exit 1
206206
@@ -292,7 +292,7 @@ jobs:
292292
gh pr create \
293293
--title "$PR_TITLE" \
294294
--body "$PR_BODY" \
295-
--base "${{ github.ref_name }}" \
295+
--base "devel" \
296296
--head "$BRANCH_NAME"
297297
298298
echo "✅ Created PR in spec repo"

0 commit comments

Comments
 (0)