mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	ci: update actions
This commit is contained in:
		
							parent
							
								
									607f143861
								
							
						
					
					
						commit
						9f883a5019
					
				
							
								
								
									
										6
									
								
								.github/workflows/close_blank_issues.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/close_blank_issues.yaml
									
									
									
									
										vendored
									
									
								
							| @ -14,11 +14,11 @@ jobs: | ||||
| 
 | ||||
|     steps: | ||||
|       - name: Check issue headings | ||||
|         uses: actions/github-script@v6 | ||||
|         uses: actions/github-script@v7 | ||||
|         with: | ||||
|           script: | | ||||
|             const issueBody = context.payload.issue.body || ""; | ||||
|              | ||||
| 
 | ||||
|             // Match Markdown headings (e.g., # Heading, ## Heading) | ||||
|             const headingRegex = /^(#{1,6})\s.+/gm; | ||||
|             const headings = [...issueBody.matchAll(headingRegex)]; | ||||
| @ -39,4 +39,4 @@ jobs: | ||||
|                 issue_number: context.payload.issue.number, | ||||
|                 state: "closed" | ||||
|               }); | ||||
|             } | ||||
|             } | ||||
|  | ||||
							
								
								
									
										2
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							| @ -43,7 +43,7 @@ jobs: | ||||
| 
 | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         uses: actions/checkout@v3 | ||||
|         uses: actions/checkout@v4 | ||||
| 
 | ||||
|       # Initializes the CodeQL tools for scanning. | ||||
|       - name: Initialize CodeQL | ||||
|  | ||||
							
								
								
									
										21
									
								
								.github/workflows/docker-build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/docker-build.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,5 +1,4 @@ | ||||
| --- | ||||
| 
 | ||||
| name: Build and Push Docker Image | ||||
| 
 | ||||
| on: | ||||
| @ -11,7 +10,7 @@ on: | ||||
|         required: true | ||||
|         default: 'latest' | ||||
|   push: | ||||
|     branches: [main,master] | ||||
|     branches: [main, master] | ||||
|     tags: | ||||
|       - 'v*.*.*' | ||||
|     # Only build when files in these directories have been changed | ||||
| @ -23,16 +22,16 @@ on: | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     if: "!contains(github.event.head_commit.message, 'skip ci')" | ||||
|     if: "!contains(github.event.head_commit.message, 'skip ci') && ${{ github.repository == 'advplyr/audiobookshelf' }}" | ||||
|     runs-on: ubuntu-20.04 | ||||
| 
 | ||||
|     steps: | ||||
|       - name: Check out | ||||
|         uses: actions/checkout@v3 | ||||
|         uses: actions/checkout@v4 | ||||
| 
 | ||||
|       - name: Docker meta | ||||
|         id: meta | ||||
|         uses: docker/metadata-action@v4 | ||||
|         uses: docker/metadata-action@v5 | ||||
|         with: | ||||
|           images: advplyr/audiobookshelf,ghcr.io/${{ github.repository_owner }}/audiobookshelf | ||||
|           tags: | | ||||
| @ -40,13 +39,13 @@ jobs: | ||||
|             type=semver,pattern={{version}} | ||||
| 
 | ||||
|       - name: Setup QEMU | ||||
|         uses: docker/setup-qemu-action@v2 | ||||
|         uses: docker/setup-qemu-action@v3 | ||||
| 
 | ||||
|       - name: Set up Docker Buildx | ||||
|         uses: docker/setup-buildx-action@v2 | ||||
|         uses: docker/setup-buildx-action@v3 | ||||
| 
 | ||||
|       - name: Cache Docker layers | ||||
|         uses: actions/cache@v3 | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: /tmp/.buildx-cache | ||||
|           key: ${{ runner.os }}-buildx-${{ github.sha }} | ||||
| @ -54,20 +53,20 @@ jobs: | ||||
|             ${{ runner.os }}-buildx- | ||||
| 
 | ||||
|       - name: Login to Dockerhub | ||||
|         uses: docker/login-action@v2 | ||||
|         uses: docker/login-action@v3 | ||||
|         with: | ||||
|           username: ${{ secrets.DOCKERHUB_USERNAME }} | ||||
|           password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||||
| 
 | ||||
|       - name: Login to ghcr | ||||
|         uses: docker/login-action@v2 | ||||
|         uses: docker/login-action@v3 | ||||
|         with: | ||||
|           registry: ghcr.io | ||||
|           username: ${{ github.repository_owner }} | ||||
|           password: ${{ secrets.GHCR_PASSWORD }} | ||||
| 
 | ||||
|       - name: Build image | ||||
|         uses: docker/build-push-action@v3 | ||||
|         uses: docker/build-push-action@v6 | ||||
|         with: | ||||
|           tags: ${{ github.event.inputs.tags || steps.meta.outputs.tags }} | ||||
|           labels: ${{ steps.meta.outputs.labels }} | ||||
|  | ||||
							
								
								
									
										3
									
								
								.github/workflows/i18n-integration.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/i18n-integration.yml
									
									
									
									
										vendored
									
									
								
							| @ -20,7 +20,8 @@ jobs: | ||||
|       - name: Set up node | ||||
|         uses: actions/setup-node@v4 | ||||
|         with: | ||||
|           node-version: '20' | ||||
|           node-version: 20 | ||||
|           cache: 'npm' | ||||
| 
 | ||||
|       # The only argument is the `directory`, which is where the i18n files are | ||||
|       # stored. | ||||
|  | ||||
							
								
								
									
										9
									
								
								.github/workflows/integration-test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/integration-test.yml
									
									
									
									
										vendored
									
									
								
							| @ -18,14 +18,15 @@ jobs: | ||||
|     name: build and test | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/checkout@v4 | ||||
| 
 | ||||
|       - name: setup nade | ||||
|         uses: actions/setup-node@v3 | ||||
|       - name: setup node | ||||
|         uses: actions/setup-node@v4 | ||||
|         with: | ||||
|           node-version: 20 | ||||
|           cache: 'npm' | ||||
| 
 | ||||
|       - name: install pkg (using yao-pkg fork for targetting node20) | ||||
|       - name: install pkg (using yao-pkg fork for targeting node20) | ||||
|         run: npm install -g @yao-pkg/pkg | ||||
| 
 | ||||
|       - name: get client dependencies | ||||
|  | ||||
							
								
								
									
										7
									
								
								.github/workflows/lint-openapi.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/lint-openapi.yml
									
									
									
									
										vendored
									
									
								
							| @ -18,15 +18,22 @@ jobs: | ||||
|       # Check out the repository | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| 
 | ||||
|       # Set up node to run the javascript | ||||
|       - name: Set up node | ||||
|         uses: actions/setup-node@v4 | ||||
|         with: | ||||
|           node-version: 20 | ||||
|           cache: 'npm' | ||||
| 
 | ||||
|       # Install Redocly CLI | ||||
|       - name: Install Redocly CLI | ||||
|         run: npm install -g @redocly/cli@latest | ||||
| 
 | ||||
|       # Perform linting for exploded spec | ||||
|       - name: Run linting for exploded spec | ||||
|         run: redocly lint docs/root.yaml --format=github-actions | ||||
| 
 | ||||
|       # Perform linting for bundled spec | ||||
|       - name: Run linting for bundled spec | ||||
|         run: redocly lint docs/openapi.json --format=github-actions | ||||
|  | ||||
							
								
								
									
										1
									
								
								.github/workflows/unit-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/unit-tests.yml
									
									
									
									
										vendored
									
									
								
							| @ -29,6 +29,7 @@ jobs: | ||||
|         uses: actions/setup-node@v4 | ||||
|         with: | ||||
|           node-version: 20 | ||||
|           cache: 'npm' | ||||
| 
 | ||||
|       - name: Install dependencies | ||||
|         run: npm ci | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user