mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2026-02-04 14:58:08 +00:00
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://github.com/actions/checkout) | action | major | `v4` → `v6` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v6`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v600) [Compare Source](https://github.com/actions/checkout/compare/v5...v6) - Persist creds to a separate file by [@​ericsciple](https://github.com/ericsciple) in [#​2286](https://github.com/actions/checkout/pull/2286) - Update README to include Node.js 24 support details and requirements by [@​salmanmkc](https://github.com/salmanmkc) in [#​2248](https://github.com/actions/checkout/pull/2248) ### [`v5`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v501) [Compare Source](https://github.com/actions/checkout/compare/v4...v5) - Port v6 cleanup to v5 by [@​ericsciple](https://github.com/ericsciple) in [#​2301](https://github.com/actions/checkout/pull/2301) </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43MS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNzEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/117 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org> Co-authored-by: Renovate Bot <bot@kriese.eu> Co-committed-by: Renovate Bot <bot@kriese.eu>
96 lines
3 KiB
YAML
96 lines
3 KiB
YAML
# SPDX-License-Identifier: MIT
|
|
|
|
name: Upload (and download) a release to (and from) the project that runs the workflow
|
|
on: [push]
|
|
jobs:
|
|
upload-download:
|
|
runs-on: lxc-bookworm
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
id: release-upload
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: upload
|
|
tag: v1.0
|
|
token: FORGEJO_TEST_TOKEN
|
|
release-dir: upload-dir
|
|
release-notes: "RELEASE NOTES"
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
id: release-upload-override
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: upload
|
|
tag: v1.0
|
|
token: FORGEJO_TEST_TOKEN
|
|
release-dir: upload-dir
|
|
release-notes-assistant: true
|
|
hide-archive-link: true
|
|
override: true
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
id: release-upload-v2
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: upload
|
|
tag: v2.0
|
|
token: FORGEJO_TEST_TOKEN
|
|
release-dir: upload-dir-v2
|
|
release-notes: |-
|
|
No shell expansion should on these notes:
|
|
- $(some_command)
|
|
- `other_commend`
|
|
- "double quoted" and 'single quoted' strings
|
|
- \backslash escape
|
|
- !exclamation_mark
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
id: release-download
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: download
|
|
tag: v1.0
|
|
token: FORGEJO_TEST_TOKEN
|
|
release-dir: download-dir
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
run: |
|
|
diff -u upload-dir download-dir
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
id: release-download-latest
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: download
|
|
token: FORGEJO_TEST_TOKEN
|
|
release-dir: download-dir-v2
|
|
download-latest: true
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
run: |
|
|
diff -u upload-dir-v2 download-dir-v2
|
|
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
id: release-upload-slash-in-tag
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: upload
|
|
tag: v/3.0
|
|
token: FORGEJO_TEST_TOKEN
|
|
release-dir: upload-dir-v3
|
|
release-notes: "RELEASE NOTES"
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
id: release-download-with-slash-in-tag
|
|
uses: SELF@vTest
|
|
with:
|
|
direction: download
|
|
tag: v/3.0
|
|
token: FORGEJO_TEST_TOKEN
|
|
release-dir: download-dir-v3
|
|
verbose: true
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
run: |
|
|
diff -u upload-dir-v3 download-dir-v3
|
|
- if: failure()
|
|
run: docker logs forgejo
|