Skip to content

Conversation

Scotchester
Copy link
Contributor

@Scotchester Scotchester commented Sep 17, 2025

Why:

Closes: #40423

What's being changed (if available, include any code snippets, screenshots, or gifs):

Restores the example that I believe was accidentally removed.

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

@Copilot Copilot AI review requested due to automatic review settings September 17, 2025 21:55
Copy link

welcome bot commented Sep 17, 2025

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

Copy link
Contributor

@Copilot 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 restores an example demonstrating conditional logic in expressions using binary logical operators in GitHub Actions workflows. The example was previously removed and is now being added back to improve documentation clarity.

  • Adds a YAML code example showing how to use && and || operators for conditional logic
  • Includes explanatory text describing the conditional behavior and important considerations

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Sep 17, 2025
Copy link
Contributor

github-actions bot commented Sep 17, 2025

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
actions/reference/workflows-and-actions/expressions.md fpt
ghec
ghes@ 3.17 3.16 3.15 3.14
fpt
ghec
ghes@ 3.17 3.16 3.15 3.14

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

@Sharra-writes
Copy link
Contributor

@Scotchester Yeah, I don't see a problem with this. I'll get this approved and added to the merge queue once checks are passing.

@Sharra-writes Sharra-writes added this pull request to the merge queue Sep 19, 2025
Merged via the queue into github:main with commit 40e9e54 Sep 19, 2025
41 checks passed
Copy link
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

@Scotchester
Copy link
Contributor Author

Thank you!

nata9014 added a commit to nata9014/docs that referenced this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Do not begin working on this issue until triaged by the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Example of expression with conditional logic accidentally removed?
2 participants