mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update update_json_date.yml
This commit is contained in:
		
							
								
								
									
										28
									
								
								.github/workflows/update_json_date.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/update_json_date.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,27 +1,25 @@
 | 
			
		||||
name: Update date_created in PR JSON files
 | 
			
		||||
name: Update JSON Date in PR
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
    types: [opened, synchronize]
 | 
			
		||||
    paths:
 | 
			
		||||
      - '.github/workflows/scripts/*.sh'
 | 
			
		||||
      - 'json/*.json'
 | 
			
		||||
    types: [opened, synchronize, reopened]
 | 
			
		||||
 | 
			
		||||
  schedule:
 | 
			
		||||
    - cron: "0 0,6,12,18 * * *"  
 | 
			
		||||
  workflow_dispatch:  
 | 
			
		||||
    - cron: '0 */2 * * *' 
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  update-date:
 | 
			
		||||
  update_json:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout PR
 | 
			
		||||
      - name: Check out repository
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
        with:
 | 
			
		||||
          ref: ${{ github.head_ref }}  
 | 
			
		||||
 | 
			
		||||
      - name: Install yq
 | 
			
		||||
        run: |
 | 
			
		||||
          sudo apt-get update
 | 
			
		||||
          sudo apt-get install -y jq
 | 
			
		||||
      - name: Make script executable
 | 
			
		||||
        run: chmod +x .github/workflows/scripts/update_json_date.sh
 | 
			
		||||
 | 
			
		||||
      - name: Update date in JSON
 | 
			
		||||
        run: |
 | 
			
		||||
          ./update_json_date.sh
 | 
			
		||||
      - name: Run the update script
 | 
			
		||||
        run: ./.github/workflows/scripts/update_json_date.sh
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user