FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add workflowEventName util function by Daverlo · Pull Request #1238 · github/codeql-action · GitHub

Add workflowEventName util function - #1238

Merged
Daverlo merged 4 commits into
mainfrom
daverlo/workflow-event-name
Sep 8, 2022
Merged

Daverlo merged 4 commits into
mainfrom
daverlo/workflow-event-name

Conversation

Daverlo commented Sep 7, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

For the 1 click setup feature of Code Scanning we are planning on use the dynamic workflows internal api. Triggering an action run this way changes the content of GITHUB_EVENT_NAME to dynamic. As we will be triggering this run after a push/pr and the action does some work in those cases, we will be providing the real event name under the env var CODESCANNING_EVENT_NAME.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Daverlo requested a review from a team as a code owner September 7, 2022 20:40
Comment thread src/actions-util.ts Outdated
if (value === undefined || value.length === 0) {
return process.env["GITHUB_EVENT_NAME"];
}
return value

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Minor: I think the build will fail because of this.

Suggested change
return value
return value;

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL