fix: Update file html removal script
This commit is contained in:
parent
858610d3a8
commit
aaa8364a16
@ -3,46 +3,17 @@ run-name: Build Docker Image
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
FixFiles:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Commiter
|
||||
run: |
|
||||
echo "Commited by: ${{ gitea.actor }}!"
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Fix files
|
||||
run: |
|
||||
for file in *.html; do
|
||||
sed -i 's/\.html//g' "$file"
|
||||
done
|
||||
|
||||
|
||||
CheckFiles:
|
||||
runs-on: ubuntu-latest
|
||||
needs: FixFiles
|
||||
steps:
|
||||
- name: Commiter
|
||||
run: |
|
||||
echo "Commited by: ${{ gitea.actor }}!"
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Check files
|
||||
run: |
|
||||
for file in *.html; do
|
||||
if grep -q "$file" "$file"; then
|
||||
echo "File $file contains canonical tag with .html!"
|
||||
exit 1
|
||||
else
|
||||
echo "File $file is correct!"
|
||||
fi
|
||||
done
|
||||
Build Docker:
|
||||
runs-on: [ubuntu-latest, amd]
|
||||
needs: CheckFiles
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Fix Files
|
||||
run : |
|
||||
for file in *.html; do
|
||||
sed -i 's/\.html//g' "$file"
|
||||
done
|
||||
- name: Install Docker
|
||||
run : |
|
||||
apt-get install ca-certificates curl gnupg
|
||||
@ -68,6 +39,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Fix Files
|
||||
run : |
|
||||
for file in *.html; do
|
||||
sed -i 's/\.html//g' "$file"
|
||||
done
|
||||
- name: Install Docker
|
||||
run : |
|
||||
apt-get install ca-certificates curl gnupg
|
||||
|
Loading…
Reference in New Issue
Block a user