forked from nrwl/nx-set-shas
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (46 loc) · 2.23 KB
/
action.yml
File metadata and controls
50 lines (46 loc) · 2.23 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'Nx set SHAs'
description: 'Derives SHAs for base and head for use in nx affected commands, optionally setting them as env variables for the current job'
inputs:
gh-token:
description: 'The GitHub token used to perform git operations'
default: ${{ github.token }}
main-branch-name:
description: 'The name of the main branch in your repo, used as the target of PRs. E.g. main, master etc'
default: 'main'
remote:
description: 'The name of the remote to fetch from'
default: 'origin'
set-environment-variables-for-job:
description: 'Applies the derived SHAs for base and head as NX_BASE and NX_HEAD environment variables within the current Job'
default: 'true'
error-on-no-successful-workflow:
description: 'By default, if no successful workflow is found on the main branch to determine the SHA, we will log a warning and use HEAD~1. Enable this option to error and exit instead.'
default: 'false'
fallback-sha:
description: 'Fallback SHA to use if no successful workflow run is found.'
required: false
default: ''
last-successful-event:
description: 'The type of event to check for the last successful commit corresponding to that workflow-id, e.g. push, pull_request, release etc'
default: 'push'
working-directory:
description: 'The directory where your repository is located'
default: '.'
workflow-id:
description: 'The ID of the workflow to track or name of the file name. E.g. ci.yml. Defaults to current workflow'
use-previous-merge-group-commit:
description: 'When using merge-group, use the previous commit in the group as the base SHA'
default: 'true'
outputs:
base:
description: The value intended for use with --base or NX_BASE in all subsequent `nx affected` commands within the current workflow
head:
description: The value intended for use with --head or NX_HEAD in all subsequent `nx affected` commands within the current workflow
noPreviousBuild:
description: "Used to check if a previous run was found in order to perform additional logic later on in your workflow, the only possible values is the string 'true', otherwise it won't be set"
runs:
using: 'node20'
main: 'dist/nx-set-shas.js'
branding:
icon: 'terminal'
color: 'blue'