10000 ci: verify that the `action.yml` files are in sync by dscho · Pull Request #223 · mxschmitt/action-tmate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ci: verify that the action.yml files are in sync #223

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

Merged
merged 3 commits into from
May 1, 2025

Conversation

dscho
Copy link
Collaborator
@dscho dscho commented May 1, 2025

In #218, I added a convenient way to launch this Action in detached mode: mxschmitt/action-tmate/detached@v3.

The way this is implemented is a copy/edited version of action.yml in the detached/ subdirectory.

This runs the danger of inadvertent divergences, as happened in #221 (which I caught in time and the contributor gracefully addressed).

Let's add automation not only to update the file easily but also to cause a failure in the PR build with a helpful message suggesting how to fix the problem.

@dscho dscho self-assigned this May 1, 2025
@dscho dscho force-pushed the verify-detached/action.yml-in-pr-builds branch from 5d64a08 to 88b2bac Compare May 1, 2025 16:41
In #218, I added a
convenient way to launch this Action in detached mode:
`mxschmitt/action-tmate/detached@v3`.

The way this is implemented is a copy/edited version of `action.yml` in
the `detached/` subdirectory.

This runs the danger of inadvertent divergences, as happened in
#221 (which I caught in
time and the contributor gracefully addressed).

Let's add automation not only to update the file easily but also to
cause a failure in the PR build with a helpful message suggesting how to
fix the problem.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the verify-detached/action.yml-in-pr-builds branch from 5c676f0 to 10acb04 Compare May 1, 2025 16:49
dscho added 2 commits May 1, 2025 18:49
There was a difference in whitespace, caught by the new step in
`checkin.yml`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The output of that step, if something goes wrong, claims that `dist/` is
not up to date, but the build product is in `lib/`.

Also, `git status -s` shows not only differences in the tracked files,
but also untracked files (which should not exist at that stage). Let's
avoid puzzling contributors when there are untracked files by logging
the output of `git status -s`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho marked this pull request as ready for review May 1, 2025 16:57
@dscho dscho requested a review from mxschmitt as a code owner May 1, 2025 16:57
@dscho dscho merged commit 7b6a61a into master May 1, 2025
1 check passed
@dscho dscho deleted the verify-detached/action.yml-in-pr-builds branch May 1, 2025 18:11
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.

2 participants
0