From cb9581a7bddba974ebab8d8557c08ad95e8a3181 Mon Sep 17 00:00:00 2001
From: Kakathic <143571950+Zelooooo@users.noreply.github.com>
Date: Mon, 30 Oct 2023 23:41:40 +0700
Subject: [PATCH] Update build.yml
---
.github/workflows/build.yml | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f8cfbad..b9dce08 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,12 +17,24 @@ jobs:
steps:
- name: Load data
uses: actions/checkout@v3
- - name: 'Chat bot'
- uses: actions/stale@v8
+ - uses: actions/github-script@v6
with:
- only-labels: "Build"
- stale-issue-label: "Wait"
- stale-issue-message: "Đang trong quá trình xây dựng, vui lòng chờ...
Sau khi xong link sẽ được gửi vào bài viết này.
Hoặc xem quá trình xây dựng 📱[Actions](https://github.com/chamchamfy/RROM/actions/runs/${{ env.idwork }})"
- days-before-stale: 0
- issue_number: 11
- repo-token: ${{ secrets.GITHUB_TOKEN }}
+ script: |
+ github.rest.issues.addLabels({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ labels: ['Test']
+ })
+ github.rest.issues.createComment({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ body: '👋 Thanks for reporting!'
+ })
+ github.rest.issues.removeLabel({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ name: ['Wait']
+ })