From f6f0c9d225cd9bda3f4b43d06ea2bf6f0903cd6d Mon Sep 17 00:00:00 2001 From: Xikaro <0regon.end@gmail.com> Date: Fri, 12 Jan 2024 08:15:43 +0500 Subject: [PATCH] workflows --- .github/workflows/release.yml | 26 +++++++++++++------------- .github/workflows/test.yml | 30 ------------------------------ 2 files changed, 13 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12e13dc19..fb5db2ccb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -299,20 +299,20 @@ jobs: ```${{ needs.modpack-info.outputs.changelog }}``` embed-color: 5814783 - close-fixed-issues: - name: Close Fixed Issues - needs: [modpack-info, release-github, release-curseforge] - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4.1.1 + # close-fixed-issues: + # name: Close Fixed Issues + # needs: [modpack-info, release-github, release-curseforge] + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v4.1.1 - - name: Сlose fixed in dev - uses: juraj-hrivnak/close-issues-based-on-label@master - env: - LABEL: "2. Status: Fixed in Dev" - VERSION: ${{ needs.modpack-info.outputs.project_version }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Сlose fixed in dev + # uses: juraj-hrivnak/close-issues-based-on-label@master + # env: + # LABEL: "2. Status: Fixed in Dev" + # VERSION: ${{ needs.modpack-info.outputs.project_version }} + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 6d40abc50..000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Close Fixed Issues -on: - push: - branches: - - main - -jobs: - closeIssues: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4.1.1 - - - name: Close Fixed Issues - run: | - issues=$(curl -s -H "Authorization: ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/TerraFirmaGreg-Team/Modpack-1.20.x/issues?state=open") - - for issue in $(echo "${issues}" | jq -r '.[].number'); do - labels=$(curl -s -H "Authorization: ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/TerraFirmaGreg-Team/Modpack-1.20.x/issues/${issue}/labels") - - if echo "${labels}" | jq -e '.[].name | select(. == "2. Status: Fixed in Dev")' > /dev/null; then - curl \ - -X PATCH \ - -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/TerraFirmaGreg-Team/Modpack-1.20.x/issues/${issue}" \ - -d '{"state": "closed"}' - fi - done \ No newline at end of file