Compare commits
1 Commits
gitea-admi
...
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,24 +0,0 @@
|
|||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Send PRBot feedback
|
|
||||||
uses: imgurbot12/prbot@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.ACCOUNT_NAME }}
|
|
||||||
api_token: ${{ secrets.GITHUBTOKEN }}
|
|
||||||
|
|
||||||
- name: Do Something With Errors
|
|
||||||
run: |
|
|
||||||
echo "::error file=app.js,line=1::Missing semicolon" | prbot
|
|
||||||
echo "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon" | prbot
|
|
||||||
|
|
||||||
- name: Post PR Feedback
|
|
||||||
if: always()
|
|
||||||
run: prbot commit
|
|
||||||
@@ -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