Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Add working-directory #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

MarcoPolo
Copy link

Fixes #6.

I wish this would be handled in the Github Actions Framework level. It seems silly that all actions are expected to provide something like this.

Prior Art:
(Other actions also add this option.
working-dir works with run


I recommend rebuilding this before publishing as a security best practice.

@fenollp
Copy link

fenollp commented May 1, 2020

Works great for me! https://github.com/fenollp/reMarkable-tools/runs/637142119?check_suite_focus=true
Thanks :)

@igormq
Copy link

igormq commented May 31, 2020

Hey guys, any plans to accept this pr?

@patrick-fitzgerald
Copy link

This would be nice to have!

tarcieri added a commit to RustCrypto/asm-hashes that referenced this pull request Oct 20, 2020
The GitHub Actions recipe is using a fork of `actions-rs/cargo` which
includes this PR to support a `working-directory` attribute:

actions-rs/cargo#59

Ideally `actions-rs/cargo` will eventually merge this PR.
tarcieri added a commit to RustCrypto/asm-hashes that referenced this pull request Oct 20, 2020
The GitHub Actions recipe is using a fork of `actions-rs/cargo` which
includes this PR to support a `working-directory` attribute:

actions-rs/cargo#59

Ideally `actions-rs/cargo` will eventually merge this PR.
@Karrq
Copy link

Karrq commented Feb 11, 2021

Why hasn't this been merged yet? GH hasn't added support for working-directory for uses and this would really makes things great for us...

@@ -10,6 +10,7 @@ import stringArgv from "string-argv";
export interface Input {
command: string;
toolchain?: string;
"working-directory"?: string;

Choose a reason for hiding this comment

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

workingDirectory to be consistent with useCross

Copy link
Author

Choose a reason for hiding this comment

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

Maybe. But in all other cases of working directory usage in GH actions (and especially run), it’s used as “working-directory”. So this is consistent with the GH action ecosystem.

Choose a reason for hiding this comment

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

@MarcoPolo I think working-directory is a good name in YAML but not in JS. For example, the GitHub official action, actions/checkout has input named ssh-key but the name in JS is sshKey.
So I think you should use workingDirectory in JS as @VincentLanglet suggested.

@anatawa12
Copy link

Any updates for this PR?

@giansalex
Copy link

This repo is dead

@ozgunozerk
Copy link

Any updates on this PR? What's stopping it from being merged?

@fanninpm
Copy link

The only maintainer of the @actions-rs organization, @svartalf, has been known to take protracted absences from the internet. Feel free to fork the project in @svartalf's absence.

@svartalf
Copy link
Member

Hi, everyone. I'm well aware that this PR is quite stale, but at the moment I do not have neither resources nor time to maintain any of my open source projects. Hopefully there will be more time available for me closer to this spring, but not right now because my personal matters and well-being of me and my family are more important for me.
Of course, we all can agree that communication should've been better, but at this point, it is what it is, unfortunately, and I am sorry about it.

Before you ask about adding more maintainers, I thought about it for a long time, but since @actions-rs are used heavily both by companies and individuals at this point for both public and private repos, there is a huge trust issue we should take into the consideration, because having a write access to these repositories provides a huge attack vector too.
I prefer to keep these repos stale for now rather then accidentally allowing some malicious third party to get access to all these private repos, which will be way worse than not having some feature merged.

I do hope that I'll be able to get back to these repos some time soon.

P.S. Dear @fanninpm , I can't say I'm appreciating your negative implication in here

has been known to take protracted absences from the internet

I suggest you to re-consider your position on this topic and start behaving yourself; I do not own you anything (as a reminder, it is also explicitly stated in the project license) and how exactly I'm maintaining my projects or what spending my time on is also none of your business.
Though I can agree that forking is always an option, there is a mention of it in #6 comments.

sameo pushed a commit to virt-do/lab that referenced this pull request Jan 16, 2022
Using @MarcoPolo action-rs cargo fork until hopefully
actions-rs/cargo#59 gets merged.

Signed-off-by: Samuel Ortiz <[email protected]>
sameo pushed a commit to virt-do/lab that referenced this pull request Jan 16, 2022
Using @MarcoPolo action-rs cargo fork until hopefully
actions-rs/cargo#59 gets merged.

Signed-off-by: Samuel Ortiz <[email protected]>
@YukiCoco
Copy link

YukiCoco commented Oct 3, 2022

Use this one instead:
https://github.com/ClementTsang/cargo-action

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support changing working directory