- Create a new GitHub Actions workflow file in your repository, for example,
caller.yml
. - Copy the provided workflow YAML into
caller_workflow.yml
. - Optionally, replace the placeholder credentials (
${{ secrets.CREDENTIAL1 }}
and${{ secrets.CREDENTIAL2 }}
) with your actual secrets. - Adjust any other configuration settings as needed.
- Commit and push the changes to your repository.
- Create a new GitHub Actions workflow file in your repository, for example,
check.yml
. - Copy the provided workflow YAML into
check.yml
. - Adjust any configuration settings as needed.
- Commit and push the changes to your repository.
- Create a new GitHub Actions workflow file in your repository, for example,
pre-flight.yml
. - Copy the provided workflow YAML into
pre-flight.yml
. - Adjust any configuration settings as needed.
- Commit and push the changes to your repository.
- Create a reusable workflow file named
reusable.yml
. - Copy the provided workflow YAML into
reusable.yml
. - Add the necessary steps and logic for your reusable workflow.
- Commit and push the changes to your repository.
- Ensure that the main workflow (
caller.yml
) properly triggers thereusable
job with the required inputs. - Test the workflow to ensure it behaves as expected.
Make sure that your repository has appropriate secrets set up in GitHub Settings, and ensure that the workflows are properly configured to use these secrets. Also, ensure that the triggers and conditions for each workflow suit your project requirements.