mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-23 06:16:41 +00:00
33 lines
628 B
YAML
33 lines
628 B
YAML
name: Test Action
|
|
|
|
on:
|
|
pull_request:
|
|
types: [labeled]
|
|
|
|
jobs:
|
|
hello-world-job:
|
|
runs-on: ubuntu-latest
|
|
name: A job to say hello
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "20"
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Hello world action step
|
|
uses: ./
|
|
|
|
id: hello
|
|
with:
|
|
label: ${{ github.event.label.name }}
|
|
|
|
- name: Get the output time
|
|
run: |
|
|
echo The label was ${{ steps.hello.outputs.label }}
|