Skip to content

Commit

Permalink
fix: env fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sivasadobe committed Jul 2, 2024
1 parent 28fd9a1 commit 691efbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
GH_TOKEN=https://github.com/settings/tokens?type=beta->generate_new_one
SLACK_WH_URL=https://api.slack.com/messaging/webhooks->generate_new_webhook_url
REPO_OWNER=adobecom
REPO_NAME=cc
GITHUB_REPOSITORY=adobecom/cc
3 changes: 1 addition & 2 deletions .github/workflows/src/send-slack.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const { parseTextToSlackBlocks } = require("./helpers");

// Those env variables are set by an github action automatically
const owner = process.env.REPO_OWNER || "";
const repo = process.env.REPO_NAME || "";
const [owner, repo]=process.env.GITHUB_REPOSITORY?.split('/') || '';
const auth = process.env.GH_TOKEN;

/**
Expand Down

0 comments on commit 691efbd

Please sign in to comment.