Skip to content

Commit

Permalink
as an argument?
Browse files Browse the repository at this point in the history
  • Loading branch information
nnamtug committed May 23, 2024
1 parent 6603e0b commit 64de1ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autopublisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- name: Git to Staging Repo
run: |
$GITHUB_WORKSPACE/publisher/auto_git2staging.sh
$GITHUB_WORKSPACE/publisher/auto_git2staging.sh ${{ env.PUBLISHER_ENVIRONMENT}}
env:
PUBLISHER_ENVIRONMENT: ${{ env.PUBLISHER_ENVIRONMENT }}
- name: Staging to Prod Repo
Expand Down
4 changes: 2 additions & 2 deletions publisher/functions.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
set
if [ $PUBLISHER_ENVIRONMENT != "" ]
if [ -z "$1" ]
then
configfile="${SCRIPT_DIR}/config-${PUBLISHER_ENVIRONMENT}.sh"
configfile="${SCRIPT_DIR}/config-${1}.sh"
else
configfile=$SCRIPT_DIR/config.sh
fi
Expand Down

0 comments on commit 64de1ef

Please sign in to comment.