Skip to content

Commit

Permalink
Add example of fetching themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
srt32 authored Feb 1, 2019
1 parent 23d542b commit 45dd72a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,30 @@ action "Filters for GitHub Actions" {
args = "branch master"
}
```

Want to dynamically fetch themes before building? Use [this action](https://github.com/marketplace/actions/git-actions) like this

```
workflow "Hugo build" {
resolves = [
"Hugo Action",
]
on = "push"
}
action "Fetch git submodules" {
uses = "srt32/git-actions@master"
args = "cd themes && git clone https://github.com/zyro/hyde-x"
}
action "Hugo Action" {
uses = "srt32/hugo-action@master"
needs = ["Filters for GitHub Actions", "Fetch git submodules"]
args = "--theme=hyde-x"
}
action "Filters for GitHub Actions" {
uses = "actions/bin/filter@b2bea0749eed6beb495a8fa194c071847af60ea1"
args = "branch master"
}
```

0 comments on commit 45dd72a

Please sign in to comment.