We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🤔️想让Issue和Readme.md内容自动同步,一次修改处处更改,整合进入流程
优点:
# Github Action Name name: 'Auto Issues' # 环境配置 env: # 设置时区 TZ: Asia/Shanghai # 触发条件 on: issues # 执行任务列表 jobs: # Job名称 IssusToReadme: # Docker 运行环境 runs-on: ubuntu-latest # 任务超时时间 timeout-minutes: 10 # 判断操作的 issue number 为 1 则继续执行 if: github.event.issue.number == 1 # 执行步骤 steps: # 控制台打印issue标题和内容 - name: watch issue context run: | echo "Issue title: ${{ github.event.issue.title }}" echo "Issue body: ${{ github.event.issue.body }}" # 拉取仓库中readme.md文件 - name: pull readme.md file uses: actions/checkout@v3 with: sparse-checkout: | readme.md sparse-checkout-cone-mode: false # 将issue内容覆盖readme.md文件 - name: write readme.md file run: echo "${{ github.event.issue.body }}" > readme.md # 将需改后的readme.md文件提交到仓库 - name: push readme.md file run: | git config user.name [bot]github-actions git config user.email github-actions@github.com git add . git commit -m "[bot]github action issues update readme.md" git push
The text was updated successfully, but these errors were encountered:
No branches or pull requests
背景
🤔️想让Issue和Readme.md内容自动同步,一次修改处处更改,整合进入流程
技术选择
Github Action
优点:
The text was updated successfully, but these errors were encountered: