Skip to content

Latest commit

 

History

History
24 lines (23 loc) · 1.05 KB

README.md

File metadata and controls

24 lines (23 loc) · 1.05 KB

01_04-composite-actions

Use these files to test a composite action.

  1. Create TWO new repos:
    • one to host the composite action
    • one to host the workflow that uses the action
  2. Upload the file action.yml into the root of the compsite action repo.
  3. Upload the following files into the root of the workflow repo:
    main.py
    requirements.txt
    
  4. 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
    
  5. If your username is octocat and the composite repo name is awesome-action, your composite-action-workflow.yml should now include a line as follows:
    uses: octocat/awesome-action@main
    
  6. Upload the file composite-action-workflow.yml into the .github/workflows directory of the composite action repo.
  7. Once the workflow file is commited, the workflow should be triggered by a push event.
  8. Confirm the workflow runs as expected and includes output from the composite action.