refactor: move all scripts to src/
This commit is contained in:
		
							parent
							
								
									b008aa54b5
								
							
						
					
					
						commit
						260dfb61cb
					
				| 
						 | 
				
			
			@ -18,18 +18,18 @@ build_job:
 | 
			
		|||
    - chmod 644 ~/.ssh/known_hosts
 | 
			
		||||
 | 
			
		||||
  script:
 | 
			
		||||
    - sh script.sh
 | 
			
		||||
    - sh src/script.sh
 | 
			
		||||
 | 
			
		||||
    - git checkout master
 | 
			
		||||
    - git config --global user.name "curben-bot"
 | 
			
		||||
    - git config --global user.email "3048979-curben-bot@users.noreply.gitlab.com"
 | 
			
		||||
 | 
			
		||||
    # Commit the changes
 | 
			
		||||
    - sh utils/commit.sh
 | 
			
		||||
    - sh src/commit.sh
 | 
			
		||||
 | 
			
		||||
    # Generate successful status badge
 | 
			
		||||
    - mkdir -p .gitlab/
 | 
			
		||||
    - sh utils/badge.sh "success"
 | 
			
		||||
    - sh src/badge.sh "success"
 | 
			
		||||
    - git add .gitlab/status.svg
 | 
			
		||||
    # Only commit when diff exists https://stackoverflow.com/a/8123841
 | 
			
		||||
    - git diff-index --quiet HEAD || git commit -m "Success pipeline"
 | 
			
		||||
| 
						 | 
				
			
			@ -67,7 +67,7 @@ failed_job:
 | 
			
		|||
    - git config --global user.email "3048979-curben-bot@users.noreply.gitlab.com"
 | 
			
		||||
 | 
			
		||||
    - mkdir -p .gitlab/
 | 
			
		||||
    - sh utils/badge.sh "failed"
 | 
			
		||||
    - sh src/badge.sh "failed"
 | 
			
		||||
    - git add .gitlab/status.svg
 | 
			
		||||
    - git diff-index --quiet HEAD || git commit -m "Failed pipeline"
 | 
			
		||||
    - ssh -T git@gitlab.com
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -746,7 +746,7 @@ See [FAQ](https://gitlab.com/curben/urlhaus-filter/wikis/faq).
 | 
			
		|||
 | 
			
		||||
[Creative Commons Zero v1.0 Universal](LICENSE.md)
 | 
			
		||||
 | 
			
		||||
[badge.sh](utils/badge.sh) & [.gitlab/](.gitlab/) contain badges that are licensed by [Shields.io](https://shields.io) under [CC0 1.0](LICENSE.md)
 | 
			
		||||
[badge.sh](src/badge.sh) & [.gitlab/](.gitlab/) contain badges that are licensed by [Shields.io](https://shields.io) under [CC0 1.0](LICENSE.md)
 | 
			
		||||
 | 
			
		||||
[URLhaus](https://urlhaus.abuse.ch/): [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,8 +3,8 @@
 | 
			
		|||
set -efux -o pipefail
 | 
			
		||||
 | 
			
		||||
## Create a temporary working folder
 | 
			
		||||
mkdir -p "tmp/"
 | 
			
		||||
cd "tmp/"
 | 
			
		||||
mkdir -p "../tmp/"
 | 
			
		||||
cd "../tmp/"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Prepare datasets
 | 
			
		||||
		Loading…
	
		Reference in New Issue