generated from w3c/wai-resource-template
-
Notifications
You must be signed in to change notification settings - Fork 17
33 lines (29 loc) · 930 Bytes
/
init.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update Submodules
on:
push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: true
- name: Update Externals
run: |
git submodule update --remote
cd _data
rm lang.json techniques.yml translations.yml wcag.yml navigation.yml
ln -s ../_external/data/lang.json
ln -s ../_external/data/techniques.yml
ln -s ../_external/data/translations.yml
ln -s ../_external/data/wcag.yml
ln -s ../_external/data/navigation.yml
cd ..
# REPONAME = $GITHUB_REPOSITORY | sed -e "s|w3c/||"
# find ./myFolder -type f -exec sed -i "s/wai-resource/${REPONAME}/g" '{}' \;
- name: commit changed files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply automatic changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}