workflows
This commit is contained in:
parent
6382341715
commit
f6f0c9d225
2 changed files with 13 additions and 43 deletions
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
|
|
@ -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 }}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
30
.github/workflows/test.yml
vendored
30
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue