Skip to content

Commit

Permalink
override repository for final release test
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Jan 16, 2024
1 parent 1f28a6f commit a3d3da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/on-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
id: test_final_release
uses: ./create-bosh-release-action/ # uses: ./.github/actions/my-private-repo/my-action #https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-an-action-inside-a-different-private-repository-than-the-workflow
with:
repository: orange-cloudfoundry/create-bosh-release-action-test-boshrelease
target_branch: main
dir: create-bosh-release-action-test-boshrelease
tag_name: "0.1.0"
Expand Down
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ fi

if [ "$INPUT_DEBUG" -ne 0 ];then
echo "Current files before release creation:"
echo "Current files:"
ls -l
fi

Expand All @@ -53,7 +52,7 @@ if [ "${name}" = "null" ]; then
name=$(yq -r .name config/final.yml)
fi

remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git"
remote_repo="https://${GITHUB_ACTOR}:${INPUT_TOKEN}@${GITHUB_SERVER_URL#https://}/${INPUT_REPOSITORY}.git"

# configure git
git config --global user.name "actions/bosh-packager@v2"
Expand Down

0 comments on commit a3d3da4

Please sign in to comment.