Compare commits
3 Commits
sharap_b-p
...
main
Author | SHA1 | Date | |
---|---|---|---|
e1ac454ca3 | |||
791cc2f352 | |||
73de2921b4 |
@ -1,19 +1,34 @@
|
||||
name: Gitea Actions Demo
|
||||
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:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "Bypass the branch protection rule"
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
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 }}."
|
||||
- run: |
|
||||
echo "HOSTS: $HOSTS"
|
||||
echo "DEPLOY: $DEPLOY"
|
||||
echo "FIRST_INSTALL: $FIRST_INSTALL"
|
@ -1,3 +1,3 @@
|
||||
# test
|
||||
# test
|
||||
host:
|
||||
test_key: test_var2
|
||||
test_key: test_var3
|
Loading…
x
Reference in New Issue
Block a user