mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
WF
This commit is contained in:
4
.github/workflows/delete_new_script.yaml
vendored
4
.github/workflows/delete_new_script.yaml
vendored
@@ -66,7 +66,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
git commit -m "Deleted files for issue: ${{ github.event.issue.title }}"
|
git commit -m "Deleted files for issue: ${{ github.event.issue.title }}"
|
||||||
git push origin $branch
|
git push origin $branch
|
||||||
gh pr create --title "Delete Files for Issue: ${{ github.event.issue.title }}" --body "Files deleted and committed in $COMMIT_SHA." --base main --head $branch
|
gh pr create --title "Delete Files for ${{ github.event.issue.title }} after Merge to Main" --body "Delete files after merge in main repo." --base main --head $branch
|
||||||
|
|
||||||
pr_number=$(gh pr list | grep -m 1 $branch | awk '{print $1}')
|
pr_number=$(gh pr list | grep -m 1 $branch | awk '{print $1}')
|
||||||
#gh pr merge $pr_number --squash
|
#gh pr merge $pr_number --squash
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
const issue_number = context.payload.issue.number;
|
const issue_number = context.payload.issue.number;
|
||||||
|
|
||||||
const message = `Files deleted with PR_#${process.env.pr_number}.`;
|
const message = `Files deleted with PR #${process.env.pr_number}`;
|
||||||
github.rest.issues.createComment({
|
github.rest.issues.createComment({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|||||||
Reference in New Issue
Block a user