Skip to content

Commit 2bc7184

Browse files
committed
Add email to git config.
1 parent e31962d commit 2bc7184

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
yarn test
3030
- name: Add node_modules files to release
3131
run: |
32+
git config --global user.email "GitHubActionsRunner@rhosys.ch"
3233
git config --global user.name "GitHub Actions"
3334
rm .gitignore
3435
git add node_modules/*

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const github = require('@actions/github');
44
async function run() {
55
// Attempt to load credentials from the GitHub OIDC provider.
66
const githubSecretAccessToken = core.getInput('github_token');
7-
if (!githubSecretAccessToken) {
7+
if (!githubSecretAccessToken || githubSecretAccessToken === '{{ secrets.GITHUB_TOKEN }}') {
88
core.setFailed("Missing use with configuration in the github action, please add to the github workflow: 'github_token: {{ secrets.GITHUB_TOKEN }}'");
99
core.getInput('github_token', { required: true });
1010
throw Error('InvalidInput');

0 commit comments

Comments
 (0)