diff --git a/.github/workflows/reusable-workflow1.yml b/.github/workflows/reusable-workflow1.yml new file mode 100644 index 0000000..03a47a0 --- /dev/null +++ b/.github/workflows/reusable-workflow1.yml @@ -0,0 +1,12 @@ +name: Reusable Workflow 1 + +on: + workflow_dispatch: + +jobs: + trigger_hello_world: + runs-on: ubuntu-latest + + steps: + - name: Trigger Hello World Workflow + uses: timothywarner-org/.github/.github/workflow-templates/hello-world-shared.yml@main \ No newline at end of file diff --git a/warner-github-actions-cert-prep.pptx b/warner-github-actions-cert-prep.pptx index dbc48a8..e2f8bb2 100644 Binary files a/warner-github-actions-cert-prep.pptx and b/warner-github-actions-cert-prep.pptx differ diff --git a/workflows_dev/hello-world-shared.yml b/workflows_dev/hello-world-shared.yml new file mode 100644 index 0000000..92bcdea --- /dev/null +++ b/workflows_dev/hello-world-shared.yml @@ -0,0 +1,31 @@ +name: Hello World Shared + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm install + + - name: Run Hello World + run: node hello-world.js + + - name: Display Output + run: echo "Hello, World!" + + - name: Log Output + run: echo "::set-output name=message::Hello, World!" \ No newline at end of file