mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
With git 2.30 instead of git >= 2.42 These will be run once a day, when the mirror from the development repository happens and copies the branches to the integration repository (see .forgejo/workflows/mirror.yml). A failure will not be blocking and will go unoticed until Codeberg is upgraded to v12 which can send a mail a workflow fails. Note: remove the "debug" commit before merging. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8140 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
29 lines
845 B
YAML
29 lines
845 B
YAML
inputs:
|
|
packages:
|
|
description: 'Packages to install'
|
|
required: true
|
|
release:
|
|
description: 'Release to install from'
|
|
default: testing
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: setup apt package source
|
|
run: |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
echo "deb http://deb.debian.org/debian/ ${RELEASE} main" > "/etc/apt/sources.list.d/${RELEASE}.list"
|
|
env:
|
|
RELEASE: ${{inputs.release}}
|
|
- name: install packages
|
|
run: |
|
|
apt-get update -qq
|
|
apt-get -q install --allow-downgrades -qq -y ${PACKAGES}
|
|
env:
|
|
PACKAGES: ${{inputs.packages}}
|
|
- name: remove temporary package list to prevent using it in other steps
|
|
run: |
|
|
rm "/etc/apt/sources.list.d/${RELEASE}.list"
|
|
apt-get update -qq
|
|
env:
|
|
RELEASE: ${{inputs.release}}
|