Update workflow and script for improved release handling
Upgraded actions/checkout to v4 in the workflow and removed redundant re-approval step. Improved get-gh-release.sh by fixing whitespace, enabling output file update, and adding a completion message.
This commit is contained in:
parent
b511d4e30e
commit
e59a39cde5
12
.github/workflows/get-versions-from-gh.yaml
generated
vendored
12
.github/workflows/get-versions-from-gh.yaml
generated
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: community-scripts/ProxmoxVED
|
repository: community-scripts/ProxmoxVED
|
||||||
ref: main
|
ref: main
|
||||||
@ -70,13 +70,3 @@ jobs:
|
|||||||
if [ -n "$PR_NUMBER" ]; then
|
if [ -n "$PR_NUMBER" ]; then
|
||||||
gh pr review $PR_NUMBER --approve
|
gh pr review $PR_NUMBER --approve
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Re-approve pull request after update
|
|
||||||
if: env.changed == 'true'
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
PR_NUMBER=$(gh pr list --head "update_versions" --json number --jq '.[].number')
|
|
||||||
if [ -n "$PR_NUMBER" ]; then
|
|
||||||
gh pr review $PR_NUMBER --approve
|
|
||||||
fi
|
|
||||||
|
|||||||
3
.github/workflows/scripts/get-gh-release.sh
generated
vendored
3
.github/workflows/scripts/get-gh-release.sh
generated
vendored
@ -36,4 +36,5 @@ while IFS= read -r repo; do
|
|||||||
|
|
||||||
done <"$INPUT_FILE"
|
done <"$INPUT_FILE"
|
||||||
|
|
||||||
#mv "$TMP_FILE" "$OUTPUT_FILE"
|
mv "$TMP_FILE" "$OUTPUT_FILE"
|
||||||
|
echo "Updated $OUTPUT_FILE"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user