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
Actions Artifacts v4 backend #2224
base: master
Are you sure you want to change the base?
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
@TWiStErRob @zdenardi it's now your turn to test this if this satisfies your needs. The following works (* on:
push:
jobs:
_5:
runs-on: ubuntu-latest
steps:
- run: env
- run: |
github:
${{ tojson(github) }}
inputs:
${{ tojson(inputs) }}
matrix:
${{ tojson(matrix) }}
needs:
${{ tojson(needs) }}
strategy:
${{ tojson(strategy) }}
shell: cp {0} context.txt
- uses: christopherhx/gitea-upload-artifact@v4
with:
name: test
path: context.txt
- uses: christopherhx/gitea-download-artifact@v4
with:
name: test
path: out
- run: cat out/context.txt For anything else someone need to take this over. I'm more satisfied by full client + server reimplementations of actions with authentication, instead of a pseudo server like for act cli. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2224 +/- ##
===========================================
+ Coverage 61.56% 73.29% +11.73%
===========================================
Files 53 62 +9
Lines 9002 8262 -740
===========================================
+ Hits 5542 6056 +514
+ Misses 3020 1645 -1375
- Partials 440 561 +121 ☔ View full report in Codecov by Sentry. |
Awesome! I can confirm this works (I grabbed the executable artifact from https://github.com/nektos/act/actions/runs/7959602137).
|
A pretty insecure backport with stubs and removed checks
I'm the original author of most code in artifacts_v4.go and the dumped proto code
jwt code is from the gitea project
Use at your own risk
If you want tests, someone else need to take this over.
Tests for the full Gitea Implementation can be found here: go-gitea/gitea#28965
Fixes #2135
dumped proto file has been deleted, because I'm not going to make changes to that file to satisfy the linter