Skip to content

Commit

Permalink
Fix README Update Job Expression (#100)
Browse files Browse the repository at this point in the history
* fix readme job expression.

* update readme.

* update readme.
  • Loading branch information
khajavi authored Jan 18, 2023
1 parent 0d04c8b commit d6cc5bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
generate-readme:
name: Generate README
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'push') || ((github.event_name == 'release') && (github.event_name == 'published')) }}
if: ${{ (github.event_name == 'push') || ((github.event_name == 'release') && (github.event.action == 'published')) }}
steps:
- name: Git Checkout
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _ZIO SBT_ is an sbt plugin for ZIO projects. It provides high-level SBT utilitie
Add the following lines to your `plugin.sbt` file:

```scala
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.3.5")
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.3.6")
```

Then you can enable it by using the following code in your `build.sbt` file:
Expand Down
2 changes: 1 addition & 1 deletion zio-sbt-website/src/main/scala/zio/sbt/WebsiteUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ object WebsiteUtils {
condition = updateReadmeCondition orElse Some(
Condition.Expression("github.event_name == 'push'") ||
Condition.Expression("github.event_name == 'release'") &&
Condition.Expression("github.event_name == 'published'")
Condition.Expression("github.event.action == 'published'")
),
steps = Seq(
Step.SingleStep(
Expand Down

0 comments on commit d6cc5bc

Please sign in to comment.