-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(manager/github-actions): renovate propose to delete YAML inline c…
…omments (#14757)
- Loading branch information
1 parent
559f805
commit a9e0825
Showing
4 changed files
with
84 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,17 @@ jobs: | |
steps: | ||
- name: Auto merge | ||
uses: "pascalgn/[email protected]" | ||
|
||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
MERGE_METHOD: squash | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97 # renovate: tag=v2.3.5 # Comment that Renovate bot has moved Comment that Renovate bot will remove later on | ||
- uses: actions/checkout@v1 # Comment that Renovate bot will remove later on | ||
- uses: "actions/[email protected]" # Comment that Renovate bot will remove later on | ||
|
||
- name: Run a one-line script | ||
run: echo Hello, world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ describe('modules/manager/github-actions/extract', () => { | |
res.deps.filter((d) => d.datasource === 'github-tags') | ||
).toHaveLength(8); | ||
}); | ||
it('extracts tag line with double quotes', () => { | ||
it('extracts multiple action tag lines with double quotes and comments', () => { | ||
const res = extractPackageFile(Fixtures.get('workflow_3.yml')); | ||
expect(res.deps).toMatchSnapshot([ | ||
{ | ||
|
@@ -29,6 +29,31 @@ describe('modules/manager/github-actions/extract', () => { | |
replaceString: '"pascalgn/[email protected]"', | ||
versioning: 'docker', | ||
}, | ||
{ | ||
currentValue: 'v2.3.5', | ||
datasource: 'github-tags', | ||
depName: 'actions/checkout', | ||
depType: 'action', | ||
replaceString: | ||
'actions/checkout@1e204e9a9253d643386038d443f96446fa156a97 # renovate: tag=v2.3.5', | ||
versioning: 'docker', | ||
}, | ||
{ | ||
currentValue: 'v1', | ||
datasource: 'github-tags', | ||
depName: 'actions/checkout', | ||
depType: 'action', | ||
replaceString: 'actions/checkout@v1', | ||
versioning: 'docker', | ||
}, | ||
{ | ||
currentValue: 'v1.1.2', | ||
datasource: 'github-tags', | ||
depName: 'actions/checkout', | ||
depType: 'action', | ||
replaceString: '"actions/[email protected]"', | ||
versioning: 'docker', | ||
}, | ||
]); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters