Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Eggert <[email protected]>
  • Loading branch information
yatil committed Sep 27, 2019
1 parent 583b63a commit 57b028a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/init.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,24 @@
name: Initialize Repository

on: [repository_dispatch]
name: Update Submodules

on:
push

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Properly initialize submodules
- name: Update Externals
run: |
cd _data
rm *.*
cd ..
mkdir _data
git submodule add https://github.com/w3c/wai-website-data.git _external/data
cd _data
ln -s ../_external/data/lang.json
cp ../_external/data/navigation.yml navigation.yml
ln -s ../_external/data/techniques.yml
ln -s ../_external/data/translations.yml
ln -s ../_external/data/wcag.yml
cd ..
git submodule update --recursive --remote
git submodule update --remote
- name: commit changed files
uses: stefanzweifel/[email protected]
with:
commit_message: Apply automatic changes
branch: ${{ github.head_ref }}
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "_external/data"]
path = _external/data
url = https://github.com/w3c/wai-website-data.git
branch = master
2 changes: 1 addition & 1 deletion content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ lang: en
# - name: Contributor 2
github:
repository: wai-resource-template
path: index.md
path: content/index.md
footer: > # Text in footer in HTML
<p> This is the text in the footer </p>
---
Expand Down

0 comments on commit 57b028a

Please sign in to comment.