Update build.yml #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
issues: | |
types: | |
- opened | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: write-all | |
jobs: | |
build: | |
name: 'Xem quá trình' | |
if: github.repository == 'Zelooooo/OS' && github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Load data | |
uses: actions/checkout@v3 | |
- name: Get Issue | |
uses: actions-cool/issues-helper@v3 | |
with: | |
actions: 'get-issue' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: 'Tắt Issues' | |
uses: actions/stale@v8 | |
with: | |
#only-labels: "build" | |
stale-issue-label: "Wait" | |
stale-issue-message: "Đang trong quá trình xây dựng, vui lòng chờ...<br/><br/>Sau khi xong link sẽ được gửi vào bài viết này." | |
#days-before-issue-stale: 0 | |
days-before-stale: 0 | |
#days-before-issue-close: 0 | |
#days-before-close: 0 | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: welcome | |
uses: actions-cool/issues-helper@v3 | |
with: | |
actions: 'welcome' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
body: hi @${{ github.event.issue.user.login }}, welcome! | |
labels: 'welcome1, welcome2' | |
assignees: 'xx1' | |
issue-emoji: '+1, -1, eyes' | |
- name: lock-issues | |
uses: actions-cool/issues-helper@v3 | |
with: | |
actions: 'close-issues' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issue-number: 3 | |
labels: 'duplicate' | |
body: test | |