Add .gitea/workflows/demo.yaml
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
name: Gitea Actions Demo
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
logLevel:
|
||||
description: 'Log level'
|
||||
required: true
|
||||
default: 'warning'
|
||||
tags:
|
||||
description: 'Test scenario tags'
|
||||
|
||||
jobs:
|
||||
First-Dummy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Echo
|
||||
run: |
|
||||
echo "Dummy"
|
||||
echo "Hello World" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
Demo-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Echo
|
||||
run: |
|
||||
echo "🚀 Hello World"
|
||||
echo "Log level: ${{ github.event.inputs.logLevel }}"
|
||||
echo "Tags: ${{ github.event.inputs.tags }}"
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: List files in the repository
|
||||
run: ls -ls ${{ github.workspace }}
|
||||
|
||||
- name: One
|
||||
id: one-test
|
||||
run: |
|
||||
ABC="${{ secrets.GITEA_TOKEN }}"
|
||||
echo "${{ secrets.GITEA_TOKEN }}"
|
||||
echo "$ABC"
|
||||
echo "BLABLA=${{ secrets.GITEA_TOKEN }}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Two
|
||||
run: |
|
||||
echo "Test: ${{ steps.one-test.outputs.BLABLA }}"
|
||||
echo "Lorem Ipsum" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
Reference in New Issue
Block a user