test-forgejo-runner/.forgejo/workflows/demo.yaml
julien.oculi ae3f7c24de
All checks were successful
UiNamed workflow / test (push) Successful in 7s
Update .forgejo/workflows/demo.yaml
2025-02-22 00:30:45 +01:00

33 lines
761 B
YAML

name: UiNamed workflow
on:
push:
branches: ["main"]
jobs:
test:
runs-on: docker
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Check repo
run: ls -lah
- name: Test secrets
run: echo ${{ secrets.SSH_Key_sample }}
- name: Setup deno
run: curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr/local sh
- name: Test set variable
id: build
run: deno eval "Promise.resolve().then(_ => JSON.stringify(Deno.build, null, '\n')).then(v => v.replaceAll(/\r?\n/g, '\\\n')).then(v => 'BUILD=' + v).then(console.log)"
- name: Test get variable
run: echo ${{ steps.build.outputs.BUILD }}
- name: Test deno
run: deno --version