Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
build: use secret in step
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Mar 30, 2020
1 parent 62662a7 commit 126e0ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: push

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BROKER_HOSTNAME: ${{ secrets.BROKER_HOSTNAME }}

jobs:
build:
Expand All @@ -21,6 +20,8 @@ jobs:
- name: Configure the AWS IoT broker hostname
if: github.head_ref == ''
env:
BROKER_HOSTNAME: ${{ secrets.BROKER_HOSTNAME }}
run: echo "CONFIG_AWS_IOT_BROKER_HOST_NAME=\"${BROKER_HOSTNAME}\"" >> prj.conf

- name: Stub AWS IoT broker hostname (this is a PR)
Expand Down

0 comments on commit 126e0ee

Please sign in to comment.