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

Use Actions #5

Open
Muxas opened this issue Oct 21, 2022 · 0 comments
Open

Use Actions #5

Muxas opened this issue Oct 21, 2022 · 0 comments

Comments

@Muxas
Copy link
Owner

Muxas commented Oct 21, 2022

One can always control a workflow with run: field with a sequence of commands to execute. To check if the latest commit to the repository did not break build and tests one has to grab the repository with git pull and then git checkout to the commit to be tested. Such a sequence of commands is common, so to reduce amount of typing it is possible to use certain predefined actions. Such predefined actions can be executed by properly setting uses: field instead of run: field.

The most common pattern is to checkout some repository into the environment, which can be done with help of actions/checkout@v3. Such an action can get certain variables with help of with: field. Please take a look at the documentation of actions/checkout@v3. It is possible to checkout several repositories into the environment.

Checkout your current repository and some other available (possibly mock) repository into the environment.

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

No branches or pull requests

1 participant