Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #30 from Surgo/releases/v1.0.3
Browse files Browse the repository at this point in the history
Replace all slashes. Fixes: #28
  • Loading branch information
heavenshell authored Sep 27, 2020
2 parents 6f0aa23 + be5fa00 commit 6a8b3c6
Show file tree
Hide file tree
Showing 6 changed files with 3,054 additions and 3,047 deletions.
14 changes: 7 additions & 7 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ describe.each([
['refs/heads/main', 'schedule', 'main', false, 'name/app:nightly'],
[
// Pull request
'refs/heads/topic/my_branch',
'refs/heads/topic/some/my_branch',
'pull_request',
'main',
false,
'name/app:topic-my_branch'
'name/app:topic-some-my_branch'
],
[
// Push branch
'refs/heads/topic/my_branch',
'refs/heads/topic/some/my_branch',
'push',
'main',
false,
'name/app:topic-my_branch'
'name/app:topic-some-my_branch'
],
[
// With sha
'refs/heads/topic/my_branch',
'refs/heads/topic/some/my_branch',
'push',
'main',
true,
'name/app:topic-my_branch,name/app:sha-ffac537e'
'name/app:topic-some-my_branch,name/app:sha-ffac537e'
],
[
// Default branch
Expand Down Expand Up @@ -83,7 +83,7 @@ test('test runs', () => {
process.env['INPUT_DOCKER_IMAGE'] = 'name/app'
process.env['INPUT_DEFAULT_BRANCH'] = 'main'
process.env['INPUT_TAG_WITH_SHA'] = 'false'
process.env['GITHUB_REF'] = 'refs/heads/topic/my_branch'
process.env['GITHUB_REF'] = 'refs/heads/topic/some/my_branch'
process.env['GITHUB_SHA'] = githubSha
process.env['GITHUB_EVENT_NAME'] = 'push'
const ip = path.join(__dirname, '..', 'lib', 'main.js')
Expand Down
Loading

0 comments on commit 6a8b3c6

Please sign in to comment.