Compare commits
1 Commits
main
...
sharap_b-p
Author | SHA1 | Date | |
---|---|---|---|
89d3071df7 |
@ -1,34 +1,20 @@
|
|||||||
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: |
|
- run: echo "merge request test"
|
||||||
echo "HOSTS: $HOSTS"
|
- run: echo "Bypass the branch protection rule"
|
||||||
echo "DEPLOY: $DEPLOY"
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
echo "FIRST_INSTALL: $FIRST_INSTALL"
|
- 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 }}."
|
@ -1,3 +1,3 @@
|
|||||||
# test
|
# test
|
||||||
host:
|
host:
|
||||||
test_key: test_var3
|
test_key: test_var2
|
Loading…
x
Reference in New Issue
Block a user