mirror of
				https://github.com/byReqz/conn.git
				synced 2025-11-03 21:01:30 +00:00 
			
		
		
		
	add actions workflow to pregen hashes
This commit is contained in:
		
							
								
								
									
										24
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
name: gethash
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    paths:
 | 
			
		||||
      - '.github/workflows/main.yml'
 | 
			
		||||
      - 'conn.sh'
 | 
			
		||||
jobs:
 | 
			
		||||
  gethash:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout repo
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        
 | 
			
		||||
      - name: get hash of script
 | 
			
		||||
        run: echo $(md5sum conn.sh | cut -c -32) > hash
 | 
			
		||||
        
 | 
			
		||||
      - name: Commit hash
 | 
			
		||||
        uses: EndBug/add-and-commit@v7
 | 
			
		||||
        with:
 | 
			
		||||
          author_name: actions
 | 
			
		||||
          author_email: nils@byreqz.de
 | 
			
		||||
          message: 'updated hash after commit'
 | 
			
		||||
          add: 'hash'
 | 
			
		||||
    
 | 
			
		||||
		Reference in New Issue
	
	Block a user