Amazon CodeCatalyst is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see How to migrate from CodeCatalyst.
Adding the 'GitHub Actions' action
A GitHub Actions action is a CodeCatalyst action that
wraps a GitHub Action and makes it compatible with CodeCatalyst workflows.
For more information, see Integrating with GitHub Actions.
To add the GitHub Actions action to a workflow, follow these
steps.
- Visual
-
To add the 'GitHub Actions' action using the visual editor
Open the CodeCatalyst console at https://codecatalyst.aws/.
-
Choose your project.
-
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source
repository or branch name where the workflow is defined, or filter
by workflow name or status.
-
Choose Edit.
-
Choose Visual.
-
At the top-left, choose + Actions to open the action
catalog.
-
From the drop-down list, choose GitHub.
-
Search for the GitHub Actions action, and do one of the
following:
-
In the Inputs and Configuration tabs,
complete the fields according to your needs. For a description of each field, see the
'GitHub Actions' action YAML. This reference
provides detailed information about each field (and corresponding YAML property value) as
it appears in both the YAML and visual editors.
-
(Optional) Choose Validate to validate the workflow's YAML
code before committing.
-
Choose Commit, enter a commit message, and choose
Commit again.
- YAML
-
To add the 'GitHub Actions' action using the YAML editor
Open the CodeCatalyst console at https://codecatalyst.aws/.
-
Choose your project.
-
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source
repository or branch name where the workflow is defined, or filter
by workflow name or status.
-
Choose Edit.
-
Choose YAML.
-
At the top-left, choose + Actions to open the action
catalog.
-
From the drop-down list, choose GitHub.
-
Search for the GitHub Actions action, and do one of the
following:
-
Modify the properties in the YAML code according to your needs. An explanation of
each available property is provided in the 'GitHub Actions' action YAML.
-
(Optional) Choose Validate to validate the workflow's YAML
code before committing.
-
Choose Commit, enter a commit message, and choose
Commit again.
'GitHub Actions' action definition
The GitHub Actions action is defined as a set of YAML properties inside your workflow definition file.
For information about these properties, see 'GitHub Actions' action YAML in the Workflow YAML definition.