actions: Cleaned up duplicate code
This commit is contained in:
parent
5aaaa42fea
commit
fae433918d
@ -1,11 +1,14 @@
|
||||
name: Build Docker
|
||||
run-name: Build Docker
|
||||
run-name: Build Docker Image
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Build Docker:
|
||||
CheckFiles:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Commiter
|
||||
run: |
|
||||
echo "Commited by: ${{ gitea.actor }}!"
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Check files
|
||||
@ -18,6 +21,11 @@ jobs:
|
||||
echo "File $file is correct!"
|
||||
fi
|
||||
done
|
||||
Build Docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Build Docker image
|
||||
run : |
|
||||
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