Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ci-cd/github-actions/.github/workflows/openlayer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ jobs:
- name: Generate Outputs
run: openlayer batch
- name: Push Project Artifacts to Openlayer
run: openlayer push --message ${{ github.event.head_commit.message }} --api-key=${{ secrets.OPENLAYER_API_KEY }}
env:
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
OPENLAYER_API_KEY: ${{ secrets.OPENLAYER_API_KEY }}
run: openlayer push --message "$COMMIT_MESSAGE"
5 changes: 4 additions & 1 deletion ci-cd/github-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ jobs:
- name: Generate Outputs
run: openlayer batch
- name: Push Project Artifacts to Openlayer
run: openlayer push --message ${{ github.event.head_commit.message }} --api-key=${{ secrets.OPENLAYER_API_KEY }}
env:
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
OPENLAYER_API_KEY: ${{ secrets.OPENLAYER_API_KEY }}
run: openlayer push --message "$COMMIT_MESSAGE"
```

This Action will run when your code is pushed to a git branch. `openlayer push` will wait for the results and cause the Action to fail if any of your tests failed.
Expand Down