mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #169] Support artifacts #111
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sandorex on GitHub (Mar 25, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/169
It would be really helpful if artifacts could be supported
@SteadBytes commented on GitHub (Apr 2, 2020):
👍 for supporting artifacts. Or at the very least it could be helpful to produce an explicit warning/error when these actions are used. AFAICT, a step using the artifact actions will succeed but no artifact will be uploaded/downloaded.
@cplee commented on GitHub (Apr 16, 2020):
Great call, good feature to add. Anyone have a sample workflow to use?
@jromero commented on GitHub (May 22, 2020):
This is use case we have in
buildpacks/pack. We ultimately want to run test and build always and then use the artifacts for the release job.The source can be found here:
Upload:
github.com/buildpacks/pack@c9745af053/.github/workflows/build.yml (L77-L81)Download:
github.com/buildpacks/pack@c9745af053/.github/workflows/build.yml (L92-L104)@github-actions[bot] commented on GitHub (Jul 22, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@zaguiini commented on GitHub (Jul 22, 2020):
Is there any progress? Can I help with something?
@jromero commented on GitHub (Jul 22, 2020):
Typically these artifacts are shipped via the gh API and then referenced by url.
I don't know how other parts, if any, work with mocking or intercepting GH API calls but I would think that is necessary to properly mock this locally. Am I wrong?
@krailler commented on GitHub (Jul 22, 2020):
How works actions/cache? Seems similar no?
@wyTrivail commented on GitHub (Aug 6, 2020):
we also have the same issue while using upload-artifacts, we got the error
it would be great if it can be mocked.
@github-actions[bot] commented on GitHub (Oct 6, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@wagenet commented on GitHub (Oct 13, 2020):
Seems like this should have remained open. It's a pretty big blocker for full use.
@ayozemr commented on GitHub (Dec 9, 2020):
Artifacts is one of those key actions that many workflows use, and bc of that its a blocker for local dev working... Having this along with cache support would make act the tool we all need to fully develop workflows locally, instead of running workflows to try things and waiting a lot of time
@github-actions[bot] commented on GitHub (Jan 16, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@ayozemr commented on GitHub (Jan 18, 2021):
Still waiting for this :-(
@catthehacker commented on GitHub (Jan 19, 2021):
It's a bit complicated since https://github.com/nektos/act/issues/329
@github-actions[bot] commented on GitHub (Feb 19, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@nicolo-ribaudo commented on GitHub (Feb 19, 2021):
Sorry bot, I hate to just 👍 issues
@github-actions[bot] commented on GitHub (Mar 22, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@CreMindES commented on GitHub (Mar 22, 2021):
Sorry bot, I hate to just +1 issues, but it's necessary in this case.
@github-actions[bot] commented on GitHub (Apr 23, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@Smana commented on GitHub (Jun 10, 2021):
Hey, we still need a solution, either an artifact server or a mock.
@catthehacker commented on GitHub (Jun 10, 2021):
@Smana see #329
@volleynerd commented on GitHub (Jun 24, 2021):
The above is not true for me. Running 0.2.23 and seeing actions/upload-artifact fail with error ::error::Unable to get ACTIONS_RUNTIME_TOKEN env variable
Agree that this is a great idea to support the goal - for typical workflows that run fine in GH will run in ACT without modification.
@JoshMcCullough commented on GitHub (May 16, 2023):
I know this feature exists now, but I'm still getting the "unable to get ACTIONS_RUNTIME_TOKEN" error. I wonder if I'm missing something?
I set up the artifact path/port in my
actcall. I'm using act-js.NM, I see this now on the related PR:
--env ACTIONS_RUNTIME_TOKEN=foomust be set (we do not have authentication implemented)@mcascone commented on GitHub (Aug 15, 2024):
i set this, using
foo(probably incorrect), and now I get:Error: authentication required@reducedhackers commented on GitHub (Oct 15, 2024):
was getting the same error , discovered I can pass GitHub token into the with: element of the step , remembering to keep in mind that the token in this case is stored in a secrets file
act --secret-file ./act/act.secrets -W ./.github/workflows/deploy_dev.yml
uses: actions/download-artifact@v4 # Use dedicated download action for security
with:
name: somartefacts.zip
url: ${{ steps.get_download_url.outputs.download_url }}
repository: ${{ github.repository }}
github-token: ${{ secrets.GITHUB_TOKEN }}