-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
63 lines (61 loc) · 1.94 KB
/
action.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
58
59
60
61
62
63
name: "Sync from github"
description: "Take change from github and notify all other services"
icon: zap
inputs:
from_ref:
description: "Starting commit (if not passed, will use from_ref to derive to_ref based on semver)"
required: false
to_ref:
description: "Ending commit"
required: false
status:
description: "Status of the deployement (Staging, Production, Development)"
default: "Development"
required: false
project:
description: "Path of the project (form of whatever-company/elium-web)"
required: false
linear_release:
description: "true if all release are linear no two versions are released at the same time"
required: false
# CREDS
github-token:
description: "github token needed for API calls"
required: true
slack-url:
description: "Slack Post URL to post MSG on deploy"
required: false
zendesk-username:
description: "Zendesk username to post MSG on deploy"
required: false
zendesk-password:
description: "Zendesk password to post MSG on deploy"
required: false
outputs:
status:
description: "Log of status"
runs:
using: "composite"
steps:
- name: Checkout the repository
uses: actions/checkout@main
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.4.18"
enable-cache: false
- name: Run dev-sync script
run: uv --directory ${{github.action_path}} run --frozen ${{github.action_path}}/dev-sync.py from_github to_zendesk to_slack
shell: bash
env:
FROM_REF: ${{ inputs.from_ref }}
TO_REF: ${{ inputs.to_ref }}
STATUS: ${{ inputs.status}}
GH_PROJECT: ${{ inputs.project}}
LINEAR_RELEASE: ${{ inputs.linear_release}}
# RELEASE: NOT USED ATM
# CREDS
GH_TOKEN: ${{ inputs.github-token}}
SLACK_URL: ${{ inputs.slack-url}}
ZD_USERNAME: ${{ inputs.zendesk-username}}
ZD_PASSWORD: ${{ inputs.zendesk-password}}