Compare commits
1 Commits
b501bb17b1
...
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"
|
||||
@@ -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 "Админ встречен! Если что"
|
||||
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: contains(format(',{0},', secrets.ADMIN_USERS), format(',{0},', github.actor))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "Админ встречен!"
|
||||
Reference in New Issue
Block a user