Skip to content

Commit

Permalink
Set a dummy API token
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Feb 19, 2024
1 parent ed0adfb commit 80e5bbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:

steps:
- uses: ddev/github-action-add-on-test@v1
env:
MITTWALD_API_TOKEN: foo
with:
ddev_version: ${{ matrix.ddev_version }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ pre_install_actions:
#ddev-description:set mittwald API token
#ddev-nodisplay
if !( {{ contains "MITTWALD_API_TOKEN" (list .DdevGlobalConfig.web_environment | toString) }} || {{ contains "MITTWALD_API_TOKEN" (list .DdevProjectConfig.web_environment | toString) }} ); then
if [[ -n "${DDEV_NONINTERACTIVE}" ]] ; then
echo "MITTWALD_API_TOKEN not set; please provide one in the web_environment configuration" >&2
exit 1
fi
read -s token
ddev config global --web-environment-add MITTWALD_API_TOKEN=${token}
echo "MITTWALD_API_TOKEN set globally"
Expand Down

0 comments on commit 80e5bbb

Please sign in to comment.