mirror of
https://code.forgejo.org/actions/forgejo-release
synced 2025-06-08 03:58:19 +02:00
specify the SHA when the repo running the action is unrelated
This commit is contained in:
parent
21454480e1
commit
429c93d710
2 changed files with 12 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Upload a Forgejo Release
|
||||
name: Upload & Download a Forgejo Release
|
||||
on: [push]
|
||||
jobs:
|
||||
setup-forgejo:
|
||||
|
@ -10,8 +10,10 @@ jobs:
|
|||
with:
|
||||
user: testuser
|
||||
password: admin1234
|
||||
- run: |
|
||||
forgejo-test-helper.sh push testrepo http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser testrepo
|
||||
- id: testrepo
|
||||
run: |
|
||||
forgejo-test-helper.sh push testrepo http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser testrepo > /tmp/output
|
||||
grep '^sha=' < /tmp/output >> $GITHUB_OUTPUT
|
||||
- id: release-upload
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
|
@ -19,6 +21,7 @@ jobs:
|
|||
url: ${{ steps.forgejo.outputs.url }}
|
||||
repo: testuser/testrepo
|
||||
tag: v1.0
|
||||
sha: ${{ steps.testrepo.outputs.sha }}
|
||||
doer: testuser
|
||||
token: ${{ steps.forgejo.outputs.token }}
|
||||
release-dir: upload-dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue