mirror of
				https://code.forgejo.org/actions/forgejo-release.git
				synced 2025-11-04 06:41:57 +02:00 
			
		
		
		
	fix(ci): no need to test for overrides twice
This commit is contained in:
		
							parent
							
								
									a15345a411
								
							
						
					
					
						commit
						a34fc370c5
					
				
					 3 changed files with 6 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -4,7 +4,7 @@ name: Upload (and download) a release to (and from) the project that runs the wo
 | 
			
		|||
on: [push]
 | 
			
		||||
jobs:
 | 
			
		||||
  upload-download:
 | 
			
		||||
    runs-on: self-hosted
 | 
			
		||||
    runs-on: lxc-bookworm
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
| 
						 | 
				
			
			@ -52,20 +52,9 @@ jobs:
 | 
			
		|||
          direction: upload
 | 
			
		||||
          tag: a/v3.0
 | 
			
		||||
          token: FORGEJO_TEST_TOKEN
 | 
			
		||||
          release-dir: upload-dir
 | 
			
		||||
          release-dir: upload-dir-v3
 | 
			
		||||
          release-notes: "RELEASE NOTES"
 | 
			
		||||
          verbose: true
 | 
			
		||||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
        id: release-upload-override-slash-in-tag
 | 
			
		||||
        uses: SELF@vTest
 | 
			
		||||
        with:
 | 
			
		||||
          direction: upload
 | 
			
		||||
          tag: a/v3.0
 | 
			
		||||
          token: FORGEJO_TEST_TOKEN
 | 
			
		||||
          release-dir: upload-dir
 | 
			
		||||
          hide-archive-link: true
 | 
			
		||||
          override: true
 | 
			
		||||
          verbose: true
 | 
			
		||||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
        id: release-download
 | 
			
		||||
        uses: SELF@vTest
 | 
			
		||||
| 
						 | 
				
			
			@ -97,11 +86,11 @@ jobs:
 | 
			
		|||
          direction: download
 | 
			
		||||
          tag: a/v3.0
 | 
			
		||||
          token: FORGEJO_TEST_TOKEN
 | 
			
		||||
          release-dir: download-dir-v3a
 | 
			
		||||
          release-dir: download-dir-v3
 | 
			
		||||
          download-latest: true
 | 
			
		||||
          verbose: true
 | 
			
		||||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
        run: |
 | 
			
		||||
          diff -u upload-dir download-dir-v3a
 | 
			
		||||
          diff -u upload-dir-v3 download-dir-v3
 | 
			
		||||
      - if: failure()
 | 
			
		||||
        run: docker logs forgejo
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								testdata/upload-download/upload-dir-v3/file1-v3.txt
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								testdata/upload-download/upload-dir-v3/file1-v3.txt
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
FILE1-V3
 | 
			
		||||
							
								
								
									
										1
									
								
								testdata/upload-download/upload-dir-v3/file2-v3.txt
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								testdata/upload-download/upload-dir-v3/file2-v3.txt
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
FILE2-V3
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue