From 7ed39ce6438273eb7b1bf746356e4f5dcb46646e Mon Sep 17 00:00:00 2001 From: John Pignata Date: Fri, 24 Jul 2026 09:26:37 -0400 Subject: [PATCH] fix: pass commit message via env var in Actions template --- ci-cd/github-actions/.github/workflows/openlayer.yaml | 5 ++++- ci-cd/github-actions/README.md | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ci-cd/github-actions/.github/workflows/openlayer.yaml b/ci-cd/github-actions/.github/workflows/openlayer.yaml index db6d650..b830ea4 100644 --- a/ci-cd/github-actions/.github/workflows/openlayer.yaml +++ b/ci-cd/github-actions/.github/workflows/openlayer.yaml @@ -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" diff --git a/ci-cd/github-actions/README.md b/ci-cd/github-actions/README.md index 97ae6b4..9dcb339 100644 --- a/ci-cd/github-actions/README.md +++ b/ci-cd/github-actions/README.md @@ -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.