dotnet-deploy-k8s/.gitea/workflows/deploy-dev-demo.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 16: mapping key "if" already defined at line 14 line 17: mapping key "run" already defined at line 15
2025-02-26 21:20:41 +08:00

17 lines
435 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: deploy to dev
on:
push:
branches:
- dev
jobs:
Explore-Gitea-Actions:
runs-on: home
steps:
- run: echo "event_name=${{ gitea.event_name }}merged=${{ gitea.event.pull_request.merged }}gitea.ref=${{ gitea.ref }}"
- name: 部署到测试环境
if: ${{ gitea.ref == 'refs/heads/dev' }}
run: echo "dev"
if: ${{ gitea.ref == 'refs/heads/main' }}
run: echo "main"