mirror of
				https://code.forgejo.org/actions/forgejo-release.git
				synced 2025-11-04 06:41:57 +02:00 
			
		
		
		
	fix: support slashes in tags (#62)
Resolves actions/forgejo-release#22 Co-authored-by: Felix Kröner <felix.kroener@bruker.com> Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/62 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: Crown0815 <crown0815@noreply.code.forgejo.org> Co-committed-by: Crown0815 <crown0815@noreply.code.forgejo.org>
This commit is contained in:
		
							parent
							
								
									a5a957d2ff
								
							
						
					
					
						commit
						47387821e5
					
				
					 3 changed files with 46 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -45,6 +45,28 @@ jobs:
 | 
			
		|||
            - \backslash escape
 | 
			
		||||
            - !exclamation_mark
 | 
			
		||||
          verbose: true
 | 
			
		||||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
        id: release-upload-slash-in-tag
 | 
			
		||||
        uses: SELF@vTest
 | 
			
		||||
        with:
 | 
			
		||||
          direction: upload
 | 
			
		||||
          tag: a/v3.0
 | 
			
		||||
          token: FORGEJO_TOKEN
 | 
			
		||||
          release-dir: upload-dir
 | 
			
		||||
          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_TOKEN
 | 
			
		||||
          release-dir: upload-dir
 | 
			
		||||
          release-notes-assistant: true
 | 
			
		||||
          hide-archive-link: true
 | 
			
		||||
          override: true
 | 
			
		||||
          verbose: true
 | 
			
		||||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
        id: release-download
 | 
			
		||||
        uses: SELF@vTest
 | 
			
		||||
| 
						 | 
				
			
			@ -69,5 +91,18 @@ jobs:
 | 
			
		|||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
        run: |
 | 
			
		||||
          diff -u upload-dir-v2 download-dir-v2
 | 
			
		||||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
        id: release-download-with-slash-in-tag
 | 
			
		||||
        uses: SELF@vTest
 | 
			
		||||
        with:
 | 
			
		||||
          direction: download
 | 
			
		||||
          tag: a/v3.0
 | 
			
		||||
          token: FORGEJO_TEST_TOKEN
 | 
			
		||||
          release-dir: download-dir-v3a
 | 
			
		||||
          download-latest: true
 | 
			
		||||
          verbose: true
 | 
			
		||||
      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
 | 
			
		||||
        run: |
 | 
			
		||||
          diff -u upload-dir download-dir-v3a
 | 
			
		||||
      - if: failure()
 | 
			
		||||
        run: docker logs forgejo
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue