Skip to content

Commit 51c1892

Browse files
committed
load non-secret env variables from file
Due to github restructions with repository variables https://github.com/orgs/community/discussions/44322
1 parent 2abed18 commit 51c1892

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/.env

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
GO_VERSION=1.24
2+
NIGHTLY_TAG=nightly
3+
NODE_VERSION=22
4+
REPO_AUTHOR_EMAIL=ayo@freshman.tech
5+
REPO_AUTHOR_NAME=Ayooluwa Isaiah
6+
REPO_BINARY_NAME=f2
7+
REPO_DESCRIPTION=F2 is a cross-platform command-line tool for batch renaming files and directories quickly and safely
8+
REPO_MAINTAINER=Ayooluwa Isaiah <ayo@freshman.tech>
9+
REPO_OWNER=ayoisaiah
10+
REPO_WEBSITE=https://f2.freshman.tech

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- name: Setup Go ${{ vars.GO_VERSION }}
18+
- name: Load .env file
19+
uses: xom9ikk/dotenv@v2.3.0
20+
with:
21+
load-mode: strict
22+
23+
- name: Setup Go ${{ env.GO_VERSION }}
1924
uses: actions/setup-go@v5
2025
with:
21-
go-version: ${{ vars.GO_VERSION }}
26+
go-version: ${{ env.GO_VERSION }}
2227

2328
- name: golangci-lint
2429
uses: golangci/golangci-lint-action@v7

0 commit comments

Comments
 (0)