-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update target branch for TTL publication
- Loading branch information
1 parent
d975480
commit 0b49b2b
Showing
3 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,19 +23,23 @@ jobs: | |
- name: Generate TTL files | ||
run: | | ||
python3 scripts/codelists2ttl.py | ||
- name: checkout publication branch | ||
- name: checkout gh-pages branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: publication | ||
- name: update publication branch and publish | ||
ref: gh-pages | ||
- name: update gh-pages branch and publish | ||
run: | | ||
mkdir /tmp/wis | ||
mv wis/ tmp/ | ||
git checkout publication | ||
git checkout gh-pages | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Tom Kralidis" | ||
rm -rf wis/* | ||
cp -rpf /tmp/wis/* . | ||
git add . | ||
git commit -am "update WMCP2 Codelists TTL files" | ||
git push | ||
if [[ `git status --porcelain` ]]; then | ||
git add . | ||
git commit -am "update WMCP2 Codelists TTL files" | ||
git push | ||
else | ||
echo "No changes to push" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters