Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
dzurikmiroslav committed Sep 27, 2024
1 parent 4625624 commit 33bbd32
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
pull_request:

jobs:
call-reusable-workflow:
uses: ./.github/workflows/env.yaml

build:
name: Build for all platforms
runs-on: ubuntu-latest
Expand All @@ -22,8 +25,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set environment variables
run: sh .github/env.sh
# - name: Set environment variables
# run: sh .github/env.sh

- name: Build
uses: espressif/esp-idf-ci-action@v1
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Reusable Workflow to Set Environment Variables

env:
ESP_IDF_VERSION: v5.3

on:
workflow_call:


jobs:
set-env:
runs-on: ubuntu-latest
steps:
- name: Set environment variables
id: set-env
run: |
echo "ESP_IDF_VERSION=$ESP_IDF_VERSION" >> $GITHUB_ENV

0 comments on commit 33bbd32

Please sign in to comment.