【文件属性】:
文件名称:github-actions:测试 GitHub Actions
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-01 07:43:09
actions github-actions JavaScript
Github Actions
测试 GitHub 工作流
常用实例
获取版本信息
- name: Test
run: |
# Strip git ref prefix from version
echo "${{ github.ref }}"
# VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# # Strip "v" prefix from tag name
# [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
echo "$VERSION"
修改 package.json
- name: Modify Version
shel
【文件预览】:
github-actions-master
----.github()
--------workflows()
----VERSION(7B)
----README.md(10KB)
----renovate.json(41B)
----index.js(265B)
----package.json(530B)