Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 05c34799c9f4a613beb6a4d7cac29568a1ec52b1
  • Loading branch information
engflow-github-automation committed Oct 31, 2024
1 parent 6defc4b commit b0d902c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
- name: Create tag
id: "tag"
env:
GIT_AUTHOR_NAME: "EngFlow"
GIT_AUTHOR_EMAIL: "noreply@engflow.com"
GIT_COMMITTER_NAME: "EngFlow"
GIT_COMMITTER_EMAIL: "noreply@engflow.com"
GIT_AUTHOR_NAME: "EngFlow GitHub Automation"
GIT_AUTHOR_EMAIL: "engflow-github-automation@engflow.com"
GIT_COMMITTER_NAME: "EngFlow GitHub Automation"
GIT_COMMITTER_EMAIL: "engflow-github-automation@engflow.com"
run: |
VERSION="$(date -u '+%Y.%m.%d-%H.%M.%S')"
echo "version=${VERSION}" >> "${GITHUB_OUTPUT}"
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
```starlark
bazel_dep(name = "engflowapis", version = "${{ steps.tag.outputs.version }}")
```
prerelease: true
prerelease: false

- name: Upload Tarball
id: upload-release-asset
Expand Down
26 changes: 7 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,19 @@ bazel build //...

## Using the APIs in your Bazel project

To integrate against `engflowapis` from your Bazel project, you must change your
`WORKSPACE` and `BUILD` files as follows.
To integrate against `engflowapis` from your Bazel project, you must add a
dependency on the `engflowapis` module.

This repository is designed to be consumed at HEAD. Please make yourself familiar
with our versioning policy below before starting to depend on any APIs.


### `WORKSPACE`

Include the API in your `WORKSPACE` using `http_archive` and a given commit sha
(look for the latest one at [engflowapis commit history])
### `MODULE.bazel`

```bzl
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_engflow_engflowapis",
sha256 = "a04a2d2a978355c85dff8b1018d12a8e0a1e6692add9de716fd4d1b7aa1e2a0d",
strip_prefix = "engflowapis-47aa858b498da13e7863356aaef9c6d05da0a7f2",
urls = [
"https://github.com/EngFlow/engflowapis/archive/47aa858b498da13e7863356aaef9c6d05da0a7f2.zip",
],
bazel_dep(
name = "engflowapis",
version = "<version>",
)
```

This links the `engflowapis` definitions under the name `com_engflow_engflowapis`.
This links the `engflowapis` definitions under the name `@engflowapis`.

### `BUILD`

Expand Down

0 comments on commit b0d902c

Please sign in to comment.