Use these files to test a composite action.
- Create TWO new repos:
- one to host the composite action
- one to host the workflow that uses the action
- Upload the file
action.yml
into the root of the compsite action repo. - Upload the following files into the root of the workflow repo:
main.py requirements.txt
- Edit the file
composite-action-workflow.yml
to replace the following placeholders with the correct values:YOUR_GITHUB_USER_NAME YOUR_COMPOSITE_ACTION_REPO_NAME
- If your username is
octocat
and the composite repo name isawesome-action
, yourcomposite-action-workflow.yml
should now include a line as follows:uses: octocat/awesome-action@main
- Upload the file
composite-action-workflow.yml
into the.github/workflows
directory of the composite action repo. - Once the workflow file is commited, the workflow should be triggered by a
push
event. - Confirm the workflow runs as expected and includes output from the composite action.