Skip to content

Commit

Permalink
code review changes: allow inputs for worflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
neel-astro committed Sep 17, 2024
1 parent 810090d commit 056059a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,32 @@ jobs:
if [ "${{ github.event.inputs.workspace_id }}" != "" ]; then
echo "Using provided workspace_id"
echo "workspace_id=${{ github.event.inputs.workspace_id }}" >> GITHUB_OUTPUT
echo "workspace_id=${{ github.event.inputs.workspace_id }}" >> $GITHUB_OUTPUT
else
echo "workspace_id=${{ secrets.WORKSPACE_ID }}" >> GITHUB_OUTPUT
echo "workspace_id=${{ secrets.WORKSPACE_ID }}" >> $GITHUB_OUTPUT
fi
if [ "${{ github.event.inputs.org_id }}" != "" ]; then
echo "Using provided org_id"
echo "org_id=${{ github.event.inputs.org_id }}" >> GITHUB_OUTPUT
echo "org_id=${{ github.event.inputs.org_id }}" >> $GITHUB_OUTPUT
else
echo "org_id=${{ secrets.ORGANIZATION_ID }}" >> GITHUB_OUTPUT
echo "org_id=${{ secrets.ORGANIZATION_ID }}" >> $GITHUB_OUTPUT
fi
if [ "${{ github.event.inputs.astronomer_host }}" != "" ]; then
echo "Using provided astronomer_host"
echo "astronomer_host=${{ github.event.inputs.astronomer_host }}" >> GITHUB_OUTPUT
echo "astronomer_host=${{ github.event.inputs.astronomer_host }}" >> $GITHUB_OUTPUT
else
echo "astronomer_host=${{ secrets.ASTRONOMER_HOST }}" >> GITHUB_OUTPUT
echo "astronomer_host=${{ secrets.ASTRONOMER_HOST }}" >> $GITHUB_OUTPUT
fi
if [ "${{ github.event.inputs.token }}" != "" ]; then
echo "Using provided token"
echo "ASTRO_API_TOKEN=${{ github.event.inputs.token }}" >> $GITHUB_ENV
echo "token=${{ github.event.inputs.token }}" >> GITHUB_OUTPUT
echo "token=${{ github.event.inputs.token }}" >> $GITHUB_OUTPUT
else
echo "ASTRO_API_TOKEN=${{ secrets.ASTRO_API_TOKEN }}" >> $GITHUB_ENV
echo "token=${{ secrets.ASTRO_API_TOKEN }}" >> GITHUB_OUTPUT
echo "token=${{ secrets.ASTRO_API_TOKEN }}" >> $GITHUB_OUTPUT
fi
- name: Redact sensitive information
Expand Down

0 comments on commit 056059a

Please sign in to comment.