Skip to content

Commit

Permalink
Merge branch 'release/1.1.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Aug 20, 2020
2 parents 0798b5c + b481afa commit 23fe931
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

## [1.1.8] - 2020-08-20
### Added
* Add GitHub commit status

## [1.1.7] - 2020-08-20
### Added
* Add "'github-deployment-environment" input to specify environment name of GitHub Deployments
Expand Down Expand Up @@ -130,7 +134,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
* Deploy to Netlify
* Comment on GitHub PR

[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.1.7...HEAD
[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.1.8...HEAD
[1.1.8]: https://github.com/nwtgck/actions-netlify/compare/v1.1.7...v1.1.8
[1.1.7]: https://github.com/nwtgck/actions-netlify/compare/v1.1.6...v1.1.7
[1.1.6]: https://github.com/nwtgck/actions-netlify/compare/v1.1.5...v1.1.6
[1.1.5]: https://github.com/nwtgck/actions-netlify/compare/v1.1.4...v1.1.5
Expand Down
16 changes: 16 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -186322,6 +186322,22 @@ function run(inputs) {
// eslint-disable-next-line no-console
console.error(err);
}
try {
yield githubClient.repos.createCommitStatus({
owner: github_1.context.repo.owner,
repo: github_1.context.repo.repo,
context: 'Netlify',
description: 'Netlify deployment',
state: 'success',
sha: github_1.context.sha,
// eslint-disable-next-line @typescript-eslint/camelcase
target_url: deployUrl
});
}
catch (err) {
// eslint-disable-next-line no-console
console.error(err);
}
}
catch (error) {
core.setFailed(error.message);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "actions-netlify",
"version": "1.1.7",
"version": "1.1.8",
"private": true,
"description": "GitHub Actions for Netlify",
"main": "lib/main.js",
Expand Down
16 changes: 16 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,22 @@ export async function run(inputs: Inputs): Promise<void> {
// eslint-disable-next-line no-console
console.error(err)
}

try {
await githubClient.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
context: 'Netlify',
description: 'Netlify deployment',
state: 'success',
sha: context.sha,
// eslint-disable-next-line @typescript-eslint/camelcase
target_url: deployUrl
})
} catch (err) {
// eslint-disable-next-line no-console
console.error(err)
}
} catch (error) {
core.setFailed(error.message)
}
Expand Down

4 comments on commit 23fe931

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.