mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-11-19 07:28:04 +00:00
ci: move composite workflow location
otherwise, they unfortunately display in the Forgejo UI with an error message
This commit is contained in:
parent
de99a9c93e
commit
e6b84f9191
4 changed files with 18 additions and 18 deletions
29
.forgejo/workflows-composite/apt-install-from/action.yaml
Normal file
29
.forgejo/workflows-composite/apt-install-from/action.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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 -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}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue