-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.67 KB
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: learn-github-actions
run-name: ${{ github.actor }} is learning GitHub Actions
on:
workflow_dispatch
jobs:
check-files:
runs-on: ubuntu-latest
outputs:
tag-name: ${{ steps.semantic-release.outputs.TAG_NAME }}
steps:
- name: Checkout the repo
uses: actions/checkout@v3
# - name: Set up Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '16.x'
- name: Display versions
run: |
node -v
npm -v
- run: source .github/scripts/test.sh
# - name: Extract branch name
# id: extract_branch
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# - name: Display branch name
# run: |
# echo "Branch name is: ${{steps.extract_branch.outputs.branch}}"
# echo $GITHUB_SHA
# ls /home/runner/work/_temp/
# which bash
# - name: Semantic Release runs
# id: semantic-release
# run: DEBUG=semantic-release:* npx semantic-release -t \${version}
# #run: DEBUG=semantic-release:* $(npm bin)/semantic-release -t \${version}
# env:
# GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# - name: Print tag name
# run: |
# echo ${{ steps.semantic-release.outputs.TAG_NAME }}
# echo ${{ steps.semantic-release.outputs }}
- name: Verify rc branch
run: echo "This is test run 2"
# - name: verify release required
# if: ${{steps.semantic-release.outputs.TAG_NAME == ''}}
# uses: actions/github-script@v3
# with:
# script: |
# core.setFailed('There are no relevant changes, so no new version is released.')