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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential github action smells #16508

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ceddy4395
Copy link

GitHub Issue (If applicable): closes #

PR Type

What kind of change does this PR introduce?

  • Build or CI related changes

What is the current behavior?

What is the new behavior?

Hey! 馃檪
I want to contribute the following changes to your workflow:

  • Stop running workflows when there is a newer commit in branch
  • Use commit hash instead of tags for action versions
  • Use names for run steps
  • Steps should only perform a single command

These changes are part of a research Study at TU Delft looking at GitHub Action Smells. Find out more

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@CLAassistant
Copy link

CLAassistant commented Apr 29, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@jeromelaban jeromelaban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes!

.github/workflows/uwp-autoconvert.yml Show resolved Hide resolved
@jeromelaban
Copy link
Member

@ceddy4395 also note we're using conventional commits, you'll need to rewrite your commits using this convention (see the PR template).

- Stop running workflows when there is a newer commit in branch
- Use commit hash instead of tags for action versions
- Use names for run steps
- Steps should only perform a single command
@ceddy4395
Copy link
Author

@jeromelaban, thanks for pointing that out 馃檲
I've rewritten the commit messages!

@unodevops
Copy link
Contributor

馃 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-16508/index.html

@jeromelaban
Copy link
Member

@ceddy4395 it looks like specifying the base path entirely is required:

https://github.com/unoplatform/uno/actions/runs/8906593863/job/24459818384?pr=16508#step:14:49

@ceddy4395
Copy link
Author

@jeromelaban Yes I see, thanks for the feedback, I've reverted those changes.

@unodevops
Copy link
Contributor

馃 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-16508/index.html

- name: Convert source tree to UWP
run: |
cd $env:GITHUB_WORKSPACE\src\Uno.WinUIRevert
dotnet run "$env:GITHUB_WORKSPACE"

- name: Run API Sync Tool
working-directory: \build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be removed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes I forgot! Removed it now

working-dir

Make sure all files (including new ones) are also staged
@unodevops
Copy link
Contributor

馃 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-16508/index.html

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

5 participants