Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.8 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.8 KB

Example Action

Example Action is a companion to Package GitHub Actions automatically with GitHub Actions which describes how to automatically package GitHub Actions using GitHub Actions, as an alternative GitHub's recommended strategy.

Project Structure

Workflows

How To Demo

  • Fork the repository
  • Create a release branch from main
  • Add a commit key (secret, deploy key)

Synchronising

  • Push changes to main and observe release is updated with changes

Packaging

  • Push changes to greeter.ts on main and observe release is updated with a new dist build

Tag Validation

  • Tag a release on main and observe it is removed
  • Tag a release on release and observe it is persisted

Greet With Action

on: [push]

jobs:
  greet-people:
    runs-on: ubuntu-latest
    steps:
      - id: greeting-actor
        uses: ./
      - name: Greet the user that initiated the workflow run
        run: echo {{ steps.greeting-actor.outputs.greeting }} # Hello, shrink!
      - id: greeting-person
        uses: ./
        with:
          name: "Alice T. Ester"
      - name: Greet the person identified by name
        run: echo {{ steps.greeting-person.outputs.greeting }} # Hello, Alice T. Ester!