forked from forkanization/Proxmox-arm64
remove install jq in frontend ci/cd
This commit is contained in:
@@ -1,52 +0,0 @@
|
|||||||
name: Auto-Close tteck Issues
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types: [opened]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
close_tteck_issues:
|
|
||||||
if: github.repository == 'community-scripts/ProxmoxVE'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Auto-close if tteck script detected
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const issue = context.payload.issue;
|
|
||||||
const content = `${issue.title}\n${issue.body}`;
|
|
||||||
const issueNumber = issue.number;
|
|
||||||
|
|
||||||
// Check for tteck script mention
|
|
||||||
if (content.includes("tteck") || content.includes("tteck/Proxmox")) {
|
|
||||||
const message = `Hello, it looks like you are referencing the **old tteck repo**.
|
|
||||||
|
|
||||||
This repository is no longer used for active scripts.
|
|
||||||
**Please update your bookmarks** and use: [https://helper-scripts.com](https://helper-scripts.com)
|
|
||||||
|
|
||||||
Also make sure your Bash command starts with:
|
|
||||||
\`\`\`bash
|
|
||||||
bash <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/...)
|
|
||||||
\`\`\`
|
|
||||||
|
|
||||||
This issue is being closed automatically.`;
|
|
||||||
|
|
||||||
await github.rest.issues.createComment({
|
|
||||||
...context.repo,
|
|
||||||
issue_number: issueNumber,
|
|
||||||
body: message
|
|
||||||
});
|
|
||||||
|
|
||||||
// Optionally apply a label like "not planned"
|
|
||||||
await github.rest.issues.addLabels({
|
|
||||||
...context.repo,
|
|
||||||
issue_number: issueNumber,
|
|
||||||
labels: ["not planned"]
|
|
||||||
});
|
|
||||||
|
|
||||||
// Close the issue
|
|
||||||
await github.rest.issues.update({
|
|
||||||
...context.repo,
|
|
||||||
issue_number: issueNumber,
|
|
||||||
state: "closed"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -33,9 +33,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install jq
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y jq
|
|
||||||
|
|
||||||
- name: Update JSON statuses
|
- name: Update JSON statuses
|
||||||
run: |
|
run: |
|
||||||
JSON_DIR=public/json
|
JSON_DIR=public/json
|
||||||
|
|||||||
Reference in New Issue
Block a user