mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-28 19:46:17 +00:00
Merge branch 'main' of https://github.com/community-scripts/ProxmoxVE
This commit is contained in:
commit
8e525611bd
25
.github/workflows/check_and_update_json_date.yml
vendored
25
.github/workflows/check_and_update_json_date.yml
vendored
@ -5,6 +5,9 @@ on:
|
|||||||
types: [synchronize, opened, reopened, edited]
|
types: [synchronize, opened, reopened, edited]
|
||||||
paths:
|
paths:
|
||||||
- "json/*.json"
|
- "json/*.json"
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0,6,12,18 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-date:
|
update-date:
|
||||||
@ -13,6 +16,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@ -43,3 +48,23 @@ jobs:
|
|||||||
uses: ad-m/github-push-action@v0.6.0
|
uses: ad-m/github-push-action@v0.6.0
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
iterate-prs:
|
||||||
|
needs: update-date
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install GitHub CLI
|
||||||
|
run: sudo apt-get install -y gh
|
||||||
|
|
||||||
|
- name: List all open PRs
|
||||||
|
run: |
|
||||||
|
gh pr list --state open --json number,title > pr_list.json
|
||||||
|
jq -r '.[] | .number' pr_list.json > pr_numbers.txt
|
||||||
|
|
||||||
|
- name: Process each PR
|
||||||
|
run: |
|
||||||
|
while read pr_number; do
|
||||||
|
gh pr checkout $pr_number
|
||||||
|
git fetch origin
|
||||||
|
git checkout origin/$pr_number
|
||||||
|
done < pr_numbers.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user