mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2026-08-28 04:54:59 -04:00
Compare commits
11 changed files with 18 additions and 27 deletions
|
|
@ -3,20 +3,18 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "**"
|
- "**"
|
||||||
branches-ignore:
|
|
||||||
- renovate/** # they are build via PR
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
FORGEJO_VERSION: 11.0.16 # renovate: datasource=docker depName=data.forgejo.org/forgejo/forgejo
|
FORGEJO_VERSION: 11.0.14 # renovate: datasource=docker depName=data.forgejo.org/forgejo/forgejo
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
integration:
|
integration:
|
||||||
runs-on: lxc-trixie
|
runs-on: lxc-trixie
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- id: forgejo
|
- id: forgejo
|
||||||
uses: https://code.forgejo.org/actions/setup-forgejo@0191c04814b526caf141138a5567000ab08ddae0 # v3.2.0
|
uses: https://code.forgejo.org/actions/setup-forgejo@v3.1.11
|
||||||
with:
|
with:
|
||||||
user: testuser
|
user: testuser
|
||||||
password: admin1234
|
password: admin1234
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# needs to be in a different dir, so binary and rna cache don't conflict
|
# needs to be in a different dir, so binary and rna cache don't conflict
|
||||||
- uses: https://data.forgejo.org/actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: https://data.forgejo.org/actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
path: forgejo-release
|
path: forgejo-release
|
||||||
|
|
||||||
|
|
@ -21,8 +21,3 @@ jobs:
|
||||||
verbose: ${{ vars.VERBOSE || 'false' }}
|
verbose: ${{ vars.VERBOSE || 'false' }}
|
||||||
release-notes-assistant: true
|
release-notes-assistant: true
|
||||||
skip-assets: true
|
skip-assets: true
|
||||||
|
|
||||||
# extract short version from tag and push as branch
|
|
||||||
- run: git push -f origin $FORGEJO_REF_NAME:${FORGEJO_REF_NAME%%.*}
|
|
||||||
shell: bash
|
|
||||||
working-directory: ./forgejo-release
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
branches-ignore:
|
|
||||||
- renovate/** # they are build via PR
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|
@ -13,7 +11,7 @@ jobs:
|
||||||
image: data.forgejo.org/oci/node:24-trixie
|
image: data.forgejo.org/oci/node:24-trixie
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: lint action-docs
|
- name: lint action-docs
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/forgejo-release@v2.13.4
|
- uses: actions/forgejo-release@v2.11.3
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://my-forgejo-instance.net
|
url: https://my-forgejo-instance.net
|
||||||
|
|
@ -65,7 +65,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
run: ./generate-changelog.sh > dist/changelog.md
|
run: ./generate-changelog.sh > dist/changelog.md
|
||||||
- uses: actions/forgejo-release@v2.13.4
|
- uses: actions/forgejo-release@v2.11.3
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://my-forgejo-instance.net
|
url: https://my-forgejo-instance.net
|
||||||
|
|
@ -86,7 +86,7 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/forgejo-release@v2.13.4
|
- uses: actions/forgejo-release@v2.11.3
|
||||||
with:
|
with:
|
||||||
direction: download
|
direction: download
|
||||||
url: https://my-forgejo-instance.net
|
url: https://my-forgejo-instance.net
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- if: ${{ inputs.release-notes-assistant }}
|
- if: ${{ inputs.release-notes-assistant }}
|
||||||
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: rna-${{ inputs.repo }}
|
key: rna-${{ inputs.repo }}
|
||||||
path: ${{ forge.action_path }}/rna
|
path: ${{ forge.action_path }}/rna
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ if ${VERBOSE:-false}; then set -x; fi
|
||||||
: ${DELAY:=10}
|
: ${DELAY:=10}
|
||||||
: ${SKIP_ASSETS:=false}
|
: ${SKIP_ASSETS:=false}
|
||||||
|
|
||||||
RELEASE_NOTES_ASSISTANT_VERSION=v1.7.3 # renovate: datasource=forgejo-releases depName=forgejo/release-notes-assistant registryUrl=https://code.forgejo.org
|
RELEASE_NOTES_ASSISTANT_VERSION=v1.7.0 # renovate: datasource=forgejo-releases depName=forgejo/release-notes-assistant registryUrl=https://code.forgejo.org
|
||||||
|
|
||||||
TAG_FILE="$TMP_DIR/tag$$.json"
|
TAG_FILE="$TMP_DIR/tag$$.json"
|
||||||
TAG_URL=$(echo "$TAG" | sed 's/\//%2F/g')
|
TAG_URL=$(echo "$TAG" | sed 's/\//%2F/g')
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@ jobs:
|
||||||
setup-forgejo:
|
setup-forgejo:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
- id: forgejo
|
- id: forgejo
|
||||||
uses: https://code.forgejo.org/actions/setup-forgejo@0191c04814b526caf141138a5567000ab08ddae0 # v3.2.0
|
uses: https://code.forgejo.org/actions/setup-forgejo@v3.1.11
|
||||||
with:
|
with:
|
||||||
user: testuser
|
user: testuser
|
||||||
password: admin1234
|
password: admin1234
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
upload-download:
|
upload-download:
|
||||||
runs-on: lxc-bookworm
|
runs-on: lxc-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-notes-file
|
id: release-notes-file
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
release-notes-file: upload-dir/RELEASE_NOTES.md
|
release-notes-file: upload-dir/RELEASE_NOTES.md
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-notes-file-takes-precedence
|
id: release-notes-file-takes-precedence
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
release-notes-file: upload-dir/RELEASE_NOTES.md
|
release-notes-file: upload-dir/RELEASE_NOTES.md
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-notes
|
id: release-notes
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: 'data.forgejo.org/oci/node:24-trixie'
|
image: 'data.forgejo.org/oci/node:24-trixie'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-upload
|
id: release-upload
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
upload-gpg:
|
upload-gpg:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-upload
|
id: release-upload
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
upload-download:
|
upload-download:
|
||||||
runs-on: lxc-bookworm
|
runs-on: lxc-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@v6
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-upload
|
id: release-upload
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue