Update .gitea/workflows/demo.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
This commit is contained in:
parent
73de2921b4
commit
791cc2f352
@ -1,19 +1,34 @@
|
|||||||
name: Gitea Actions Demo
|
name: Gitea Actions Demo
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on: [push]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
HOSTS:
|
||||||
|
required: true
|
||||||
|
description: "Comma separated list of hosts or groups that should be deployed"
|
||||||
|
default: all:!bec
|
||||||
|
type: string
|
||||||
|
DEPLOY:
|
||||||
|
description: "Execute actual deployment. If false then only perform tests"
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
FIRST_INSTALL:
|
||||||
|
description: "Put it to True only if the FPGA card has never been flashed before"
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
env:
|
||||||
|
HOSTS: ${{ inputs.HOSTS || 'all:!bec' }}
|
||||||
|
DEPLOY: ${{ inputs.DEPLOY || false }}
|
||||||
|
FIRST_INSTALL: ${{ inputs.FIRST_INSTALL || false }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Bypass the branch protection rule"
|
- run: |
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
echo "HOSTS: $HOSTS"
|
||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
echo "DEPLOY: $DEPLOY"
|
||||||
- name: Check out repository code
|
echo "FIRST_INSTALL: $FIRST_INSTALL"
|
||||||
uses: actions/checkout@v4
|
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
|
||||||
ls ${{ gitea.workspace }}
|
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
|
Loading…
x
Reference in New Issue
Block a user