Skip to content

Commit

Permalink
Using GITHUB_ENV for BASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jlumbroso committed Nov 24, 2023
1 parent 0ffe82c commit 8dd4bf4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ runs:
if [ -z "${{ inputs.base_url }}" ]; then
GITHUB_USERNAME=$(echo $GITHUB_REPOSITORY | cut -f1 -d"/")
GITHUB_REPO=$(echo $GITHUB_REPOSITORY | cut -f2 -d"/")
BASE_URL="https://${GITHUB_USERNAME}.github.io/${GITHUB_REPO}/"
echo "BASE_URL=https://${GITHUB_USERNAME}.github.io/${GITHUB_REPO}/" >> $GITHUB_ENV
else
BASE_URL="${{ inputs.base_url }}"
echo "BASE_URL=${{ inputs.base_url }}" >> $GITHUB_ENV
fi
echo "Base URL: $BASE_URL"
- name: "📥 Checkout Repository"
uses: actions/checkout@v2
Expand All @@ -65,7 +64,7 @@ runs:
shell: bash

- name: "🚀 Run IntegriMark"
run: integrimark create --output_directory ./tmp --base_url $BASE_URL ${{ inputs.files }}
run: integrimark create --output_directory ./tmp --base_url ${{ env.BASE_URL }} ${{ inputs.files }}
shell: bash

- name: "🔁 Copy passwords.json Back to Root"
Expand Down

0 comments on commit 8dd4bf4

Please sign in to comment.