actions: Cleaned up duplicate code
This commit is contained in:
parent
5aaaa42fea
commit
fae433918d
@ -1,11 +1,14 @@
|
|||||||
name: Build Docker
|
name: Build Docker
|
||||||
run-name: Build Docker
|
run-name: Build Docker Image
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build Docker:
|
CheckFiles:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Commiter
|
||||||
|
run: |
|
||||||
|
echo "Commited by: ${{ gitea.actor }}!"
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Check files
|
- name: Check files
|
||||||
@ -18,6 +21,11 @@ jobs:
|
|||||||
echo "File $file is correct!"
|
echo "File $file is correct!"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Build Docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run : |
|
run : |
|
||||||
apt-get install ca-certificates curl gnupg
|
apt-get install ca-certificates curl gnupg
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
name: OnPush
|
|
||||||
run-name: ${{ gitea.actor }} has pushed to woodburn repo
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
CheckFiles:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Commiter
|
|
||||||
run: |
|
|
||||||
echo "Commited by: ${{ gitea.actor }}!"
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: List HTML files
|
|
||||||
run: |
|
|
||||||
ls *.html
|
|
||||||
- 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
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user