-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
50 lines (40 loc) · 1.47 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
name: 'Statsig Publish SDK Action'
description: 'Pushes releases from private to public SDK repositories'
author: 'Statsig'
inputs:
kong-private-key:
description: 'The private key required to run the Kong Github App'
required: true
npm-token:
description: 'The NPM Access Token'
pypi-token:
description: 'The PyPI Access Token'
pypi-beta-token:
description: 'The PyPI Access Token For Beta Releases'
rubygems-key:
description: 'The RubyGems API Key'
cargo-token:
description: 'The Crates.io Registry Token'
runs:
using: 'composite'
steps:
- name: Setup Python
if: ${{ inputs.pypi-token != '' || inputs.pypi-beta-token != '' }}
uses: statsig-io/statsig-publish-sdk-action/python@main
- name: Setup Ruby
if: ${{ inputs.rubygems-key != '' }}
uses: statsig-io/statsig-publish-sdk-action/ruby@main
# - name: Print Action Info
# shell: bash
# run: echo "${{ toJson(github) }}"
- name: Run Core
if: contains(fromJson('["push", "pull_request", "release"]'), github.event_name)
uses: statsig-io/statsig-publish-sdk-action/core@main
with:
kong-private-key: ${{ inputs.kong-private-key }}
npm-token: ${{ inputs.npm-token }}
pypi-token: ${{ inputs.pypi-token }}
pypi-beta-token: ${{ inputs.pypi-beta-token }}
rubygems-key: ${{ inputs.rubygems-key }}
cargo-token: ${{ inputs.cargo-token }}
is-beta: ${{ !!github.event.release.prerelease }}