Skip to content

Commit

Permalink
Rename BOT_TOKEN_TEST to BOT_TOKEN in workflow, scripts, and configur…
Browse files Browse the repository at this point in the history
…ation files
  • Loading branch information
sayaliM0412 committed Feb 20, 2025
1 parent b32550d commit f34fd85
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

create-action-repo:
env:
TF_VAR_BOT_TOKEN: ${{ secrets.BOT_TOKEN_TEST }}
TF_VAR_BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
TF_TOKEN_spacelift_io: ${{ secrets.SPACELIFT_API_KEY }}
SPACELIFT_API_KEY_ENDPOINT: ${{ secrets.SPACELIFT_API_KEY_ENDPOINT }}
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
}

provider "github" {
token = var.BOT_TOKEN_TEST
token = var.BOT_TOKEN
owner = "liquibase-github-actions"
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/push-to-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

if [[ -z "$BOT_TOKEN_TEST" ]]; then
if [[ -z "$BOT_TOKEN" ]]; then
echo "Set the BOT_TOKEN env variable."
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# export TF_VAR_BOT_TOKEN="..."
variable "BOT_TOKEN_TEST" {
variable "BOT_TOKEN" {
type = string
description = "LiquiBot GitHub Token"
}

0 comments on commit f34fd85

Please sign in to comment.