Skip to content

Commit

Permalink
Merge pull request toptal#10 from toptal/set-output-usage-update
Browse files Browse the repository at this point in the history
[UTI-2480] Fix `set-output` usage
  • Loading branch information
romanrod authored Nov 30, 2022
2 parents 649c04c + 171fc34 commit 048a4d3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
* `jenkins_url`: **required** Jenkins instance URL
* `jenkins_user`: **required** User name used for authentication
* `jenkins_token`: **required** Jenkins API token that belongs to jenkins_user
* `proxy`: **required** Proxy URL, includes username and password
* `job_name`: **required** for jobs stored in a folder use `{folder-name}/job/{job-name}`
* `job_params`: Valid JSON with key-value params passed to the job
* `job_timeout`: Number of seconds to wait for the action to finish (Default 30)
* `proxy`: Proxy URL, includes username and password
* `async`: Set to true if you want to just trigger the job and dont wait for it to complete (Default false)

### Outputs
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ inputs:
jenkins_token:
required: true
description: 'Jenkins API token that belongs to jenkins_user'
proxy:
required: true
description: 'Proxy url, which includes username and password'
job_name:
required: true
description: 'Jenkins job to triggered and follow up'
Expand All @@ -24,6 +21,9 @@ inputs:
description: 'Jenkins job timeout period. Default 30 seconds'
required: false
default: '30'
proxy:
required: false
description: 'Proxy url, which includes username and password'
async:
description: 'Set to true if you want to just trigger the job without waiting for it to finish'
required: false
Expand Down
2 changes: 1 addition & 1 deletion jenkins/job_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def initialize(args)
def call
queue_item_location = queue_job(job_name, job_params)
job_run_url = get_job_run_url(queue_item_location, job_timeout)
puts "::set-output name=jenkins_job_url::#{job_run_url}"
puts "echo 'jenkins_job_url=#{job_run_url}' >> $GITHUB_OUTPUT"
puts "Job run URL: #{job_run_url}"

if @async_mode
Expand Down

0 comments on commit 048a4d3

Please sign in to comment.