-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (34 loc) · 1.08 KB
/
ADD_TO_PROJECT.yml
File metadata and controls
36 lines (34 loc) · 1.08 KB
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
name: ADD_TO_PROJECT
on:
workflow_dispatch:
# issues:
# types:
# - opened
# - transferred
# - labeled
# pull_request:
# types:
# - opened
# - labeled
jobs:
exec:
name: Add issue to project
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c # v3.0.0
with:
url: ${{ secrets.VAULT_ADDR }}
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
exportEnv: false
secrets: |
secret/data/products/desktop-modeler/ci/ADD_TO_PROJECT_PAT ADD_TO_PROJECT_PAT;
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
with:
project-url: ${{ secrets.CONNECTORS_PROJECT_URL }}
github-token: ${{ steps.secrets.outputs.ADD_TO_PROJECT_PAT }}
labeled: connectors