mirror of
https://github.com/marado/RNID.git
synced 2025-01-22 02:09:35 +00:00
SSAIGT: scripted
This commit is contained in:
parent
1602874451
commit
76476949e5
1
.github/workflows/scripts.yml
vendored
1
.github/workflows/scripts.yml
vendored
@ -38,6 +38,7 @@ jobs:
|
||||
"${GITHUB_WORKSPACE}/scripts/50-bud.sh"
|
||||
"${GITHUB_WORKSPACE}/scripts/51-dgeg.sh"
|
||||
"${GITHUB_WORKSPACE}/scripts/52-covid.sh"
|
||||
"${GITHUB_WORKSPACE}/scripts/53-ssaigt.sh"
|
||||
|
||||
- name: Commit file(s)
|
||||
run: |
|
||||
|
15
scripts/53-ssaigt.sh
Executable file
15
scripts/53-ssaigt.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
wget https://ssaigt.dgterritorio.pt/Manuais_SSAIGT/Manual_SSAIGT-REN.pdf -o /dev/null
|
||||
|
||||
diff Manual_SSAIGT-REN.pdf scripts/53/Manual_SSAIGT-REN.pdf && (
|
||||
echo "ssaigt: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test "$(echo "$line"|grep -v -c "ssaigt")" -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
) || echo "ssaigt: incumprimento pode já não existir";
|
||||
|
||||
rm Manual_SSAIGT-REN.pdf
|
BIN
scripts/53/Manual_SSAIGT-REN.pdf
Normal file
BIN
scripts/53/Manual_SSAIGT-REN.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user