Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: emit a warning when the workspace is empty #117

Merged
merged 1 commit into from Jan 26, 2022
Merged

Conversation

sethvargo
Copy link
Member

@sethvargo sethvargo commented Jan 26, 2022

There have been a number of GitHub issues recently due to users not adding actions/checkout before calling "auth", which makes the credentials unavailable to future steps. Worse, some people are putting checkout after auth, which overwrites the generated credentials with a checkout of the repo.

This adds a feature that emits a warning with the workspace is empty.

There have been a number of GitHub issues recently due to users not adding actions/checkout before calling "auth", which makes the credentials unavailable to future steps. Worse, some people are putting checkout _after_ auth, which overwrites the generated credentials with a checkout of the repo.

This adds a feature that emits a warning with the workspace is empty.
@sethvargo sethvargo requested a review from as a code owner Jan 26, 2022
@sethvargo sethvargo requested review from averikitsch (assigned from google-github-actions/maintainers) and bharathkkb (assigned from google-github-actions/maintainers) Jan 26, 2022
@sethvargo sethvargo enabled auto-merge (squash) Jan 26, 2022
src/utils.ts Show resolved Hide resolved
@sethvargo sethvargo disabled auto-merge Jan 26, 2022
@sethvargo sethvargo merged commit 983a037 into main Jan 26, 2022
9 checks passed
@sethvargo sethvargo deleted the sethvargo/empty branch Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants