【发布时间】:2020-02-16 11:48:52
【问题描述】:
我在这个配置中使用 github 操作
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install
run: npm install
- name: npm build
run: npm run build --if-present
- name: npm test
run: npm test
- name: make storybook
run: npm run build-storybook
- uses: dswistowski/surge-sh-action@v1
with:
domain: 'https://react-strix-$(git rev-parse --short HEAD).surge.sh'
project: '.out'
login: straxico@gmail.com
token: ${{ secrets.SURGE_PASSWORD }}
- name: deploy image
run: |
docker login docker.pkg.github.com --username straxico --password ${{ secrets.DOCKER_PASSWORD }}
docker build . --file Dockerfile --tag docker.pkg.github.com/straxico/react-strix/master:$(git describe --tags)
docker push docker.pkg.github.com/straxico/react-strix/master:$(git describe --tags)
我想在最新推送的提交上自动创建评论,包括我的故事书和 docker URL。像“现在”机器人
如何使用 github 操作对提交进行评论?
【问题讨论】:
标签: github github-api github-actions