-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.85 KB
/
devops-project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# SPDX-FileCopyrightText: 2022 WebReady Projects <https://github.com/wr-projects/>
#
# SPDX-License-Identifier: MIT
---
name: Pipeline -
on:
issues:
types:
- opened
- labeled
- reopened
- closed
env:
organization: wr-projects
project_id: 14
todo: 🆕 New
jobs:
new_issue_labeled_team:
name: new_issue_labeled_team
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'group:👨💻devops' }} && contains(fromJson('["status:⌛in-analysis", "status:🆘new-issue"]'), github.event.label.name)
steps:
# More info: https://github.com/step-security/harden-runner.
- name: Harden Runner
id: harden_runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
egress-policy: audit
# More info: https://github.com/peter-murray/workflow-application-token-action.
- name: Get token
id: get_token
uses: peter-murray/workflow-application-token-action@8e4e6fbf6fcc8a272781d97597969d21b3812974
with:
application_id: ${{ secrets.ID_ADD_DEVOPS_PROJECT_BOT }}
application_private_key: ${{ secrets.PEM_ADD_DEVOPS_PROJECT_BOT }}
# More info: https://github.com/actions/checkout.
- name: Checkout & Authentication
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
fetch-depth: 0
# More info: https://github.com/leonsteinhaeuser/project-beta-automations/
- name: Move issue to 🆕 New
uses: leonsteinhaeuser/project-beta-automations@939000fb1900c9fc4f7b5058a09d9f833ebc6859
with:
gh_token: ${{ steps.get_token.outputs.token }}
organization: wr-projects
project_id: 14
resource_node_id: ${{ github.event.issue.node_id }}
status_value: 🆕 New