Skip to content

Commit

Permalink
feat: add env
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparRosin committed Jan 10, 2024
1 parent d8f7247 commit 30d54fc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
personal_access_token=
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ jobs:
uses: "./.github/actions/sync-nova"
with:
target_nova_repo: ${{ vars.TARGET_NOVA_REPO }}
personal_access_token: ${{ env.NOVA_REPO_ACCESS_TOKEN }}
env:
personal_access_token: ${{ secrets.NOVA_REPO_ACCESS_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
.env
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { compare } from "semver";
const nova_url = "https://nova.laravel.com";

async function run() {
const token = getInput("personal_access_tohken");
const token = process.env.personal_access_token;
const [owner, repo] = getInput("target_nova_repo");
const octokit = getOctokit(token);

Expand Down

0 comments on commit 30d54fc

Please sign in to comment.