Compare commits
1 Commits
3b299f02b2
...
alex-patch
| Author | SHA1 | Date | |
|---|---|---|---|
| cfca222d33 |
19
.gitea/workflows/merge_prod.yaml
Normal file
19
.gitea/workflows/merge_prod.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Simple Deploy Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
print-message:
|
||||||
|
name: Print Welcome Message
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Print message
|
||||||
|
run: echo "Красота во всем"
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
name: Merge Success Notification
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [closed]
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
notify-on-merge:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Print merge success
|
|
||||||
run: echo "Удачное слияние в ветку main"
|
|
||||||
9
.gitea/workflows/test_branches.yml
Normal file
9
.gitea/workflows/test_branches.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo "Раннер работает На другой ветке!"
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
user-check:
|
|
||||||
description: "Admin verification"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
main-job:
|
|
||||||
if: github.actor == 'alex'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo "Админ встречен!"
|
|
||||||
Reference in New Issue
Block a user