project-version-check/.github/workflows/main.yaml
Shakar 35faf1fbb8
print github token
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
2023-09-18 15:02:30 +03:00

42 lines
847 B
YAML

name: Test Action
on:
# pull_request:
# types: [labeled]
push:
branches:
- dev
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: Print GitHub token
run: echo ${{ secrets.GITHUB_TOKEN }}
- name: Hello world action step
uses: ./
id: hello
with:
label: minor
filePath: package.json
repoToken: ${{ secrets.GITHUB_TOKEN }}
# ${{ github.event.label.name }}
- name: Get the output time
run: |
echo The label was label
# ${{ steps.hello.outputs.label }}