Skip to content

fix: resolve workflow validation error and test script path#191

Merged
accesswatch merged 3 commits intomainfrom
fix/workflow-and-test-issues
May 8, 2026
Merged

fix: resolve workflow validation error and test script path#191
accesswatch merged 3 commits intomainfrom
fix/workflow-and-test-issues

Conversation

@accesswatch
Copy link
Copy Markdown
Collaborator

Fixes two issues from the previous merge\n\n### 1. registration.yml workflow validation failure\n\nGitHub Actions does not support secrets.* references in step-level if expressions. The step was gated on secrets.CLASSROOM_ORG_ADMIN_TOKEN != '', which caused the workflow file to fail Actions validation on every push.\n\nFix: Removed the secrets check from the if condition. The step is now gated solely on vars.CLASSROOM_ORG != ''. If the secret is unset, github-token will fall back to the default token (no org invite will be sent, which is the safe default).\n\n### 2. Automation Tests failure -- podcast scripts not found\n\nThe generated podcast scripts avoid stale boilerplate test used fs.readdirSync (non-recursive) on podcasts/scripts, expecting .txt files in the root. The scripts were reorganised into subdirectories (challenges/, chapters/, appendices/) in the previous commit.\n\nFix: Replaced readdirSync with a recursive collectTxtFiles() helper that walks all subdirectories.

GitHub Workshop Bot added 3 commits May 8, 2026 11:23
- Restructure docs and classroom content
- Add .gitattributes to enforce LF line endings across all text files
- Remove deprecated podcast bundles, scripts, and transcripts
- Remove old HTML file mappings replaced by updated structure
- Update admin, docs, html, and learning-room content
- Remove secrets.* reference from step-level if condition in registration.yml
  (GitHub Actions does not support secrets in step if expressions)
- Update podcast scripts test to walk subdirectories recursively
  (scripts were reorganised from flat files into challenges/chapters/appendices)
Copilot AI review requested due to automatic review settings May 8, 2026 18:37
@accesswatch accesswatch requested a review from taylorarndt as a code owner May 8, 2026 18:37
@accesswatch accesswatch merged commit 3aabc71 into main May 8, 2026
5 checks passed
@accesswatch accesswatch deleted the fix/workflow-and-test-issues branch May 8, 2026 18:37
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Peer Review Assigned

Hi @accesswatch! Your PR has been automatically paired with @taylorarndt for peer review.

For @taylorarndt:

This is a great opportunity to practice code review skills! Here's what to look for:

Content Quality:

  • Does the change accomplish what the issue describes?
  • Is the writing clear and helpful?
  • Are there any typos or grammar issues?

Accessibility:

  • Proper heading hierarchy (H1 → H2 → H3, no skips)?
  • Descriptive link text (not "click here")?
  • Alt text on images?
  • [TODO] markers removed?

Documentation:

  • Code blocks are properly formatted?
  • Tables have headers?
  • References/links work correctly?

Review Guidelines:

  • Be kind and constructive
  • Suggest improvements, don't just point out problems
  • Ask questions if something is unclear
  • Approve when ready or request changes with explanation

Resources:


Pairing by Learning Room Grouping Engine

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses two regressions from a prior merge: a GitHub Actions workflow validation failure in the registration workflow and a failing automation test after podcast script files were reorganized into subdirectories.

Changes:

  • Updates the registration workflow step condition to avoid unsupported secrets.* usage in step-level if expressions.
  • Fixes the “generated podcast scripts avoid stale boilerplate” automation test by recursively discovering .txt script files under podcasts/scripts/.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/registration.yml Removes secrets.* from a step-level if to restore workflow validation.
.github/scripts/tests/challenge-doc-consistency.test.js Recursively collects .txt podcast script files so the test works with nested directories.

Comment on lines +150 to 153
vars.CLASSROOM_ORG != ''
uses: actions/github-script@v7
env:
CLASSROOM_ORG: ${{ vars.CLASSROOM_ORG }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants