refactor: move all scripts to src/

This commit is contained in:
MDLeom 2022-01-07 10:35:02 +00:00
parent b008aa54b5
commit 260dfb61cb
5 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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/)

View File

@ -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