aboutsummaryrefslogtreecommitdiff
path: root/.github/actions/deploy-request/action.yml
blob: cc6ceef97e0b217905860c1afecf142b0fc64b01 (plain)
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
name: "deploy-request"
description: "Request a deployment"
author: "menny"

inputs:
  sha:
    description: "SHA to deploy. Either a specific commit, or HEAD."
    required: true
  ref:
    description: "branch to deploy"
    required: true
  new_deploy:
    description: "whether this is a new deploy"
    required: true
  api_username:
    description: "username for github api"
    required: true
  api_token:
    description: "token for github api"
    required: true
runs:
  using: "docker"
  image: "docker://menny/ndk_ask:1.13.7"
  env:
    TERM: dumb
    GRADLE_OPTS: "-Dorg.gradle.daemon=false --stacktrace"
    GRADLE_USER_HOME: ".github_cache_gradle/"

  entrypoint: /bin/bash
  args:
    - .github/actions/deploy-request/deployment_request.sh
    - ${{ inputs.sha }}
    - ${{ inputs.ref }}
    - ${{ inputs.new_deploy }}
    - ${{ inputs.api_username }}
    - ${{ inputs.api_token }}

branding:
  icon: 'upload-cloud'
  color: 'blue'