mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 07:42:13 -05:00
Fix automation for release action.yml updates
This commit is contained in:
parent
f76e0a23e2
commit
94dc95d6a5
1 changed files with 10 additions and 20 deletions
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
|
@ -97,27 +97,17 @@ jobs:
|
||||||
# Full git history is needed to get a proper list of commits and tags
|
# Full git history is needed to get a proper list of commits and tags
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Update action.yml release version number
|
- name: Update action.yml
|
||||||
uses: fjogeleit/yaml-update-action@main
|
run: yq '.runs.image = "docker://ghcr.io/super-linter/super-linter:${{ env.RELEASE_VERSION }}"' -i action.yml
|
||||||
with:
|
|
||||||
valueFile: 'action.yaml'
|
|
||||||
propertyPath: 'runs.image'
|
|
||||||
value: docker://ghcr.io/super-linter/super-linter:${{ env.RELEASE_VERSION }}
|
|
||||||
commitChange: true
|
|
||||||
message: update action.yml version pointer
|
|
||||||
branch: main
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Update slim/action.yml release version number
|
- name: Update slim/action.yml
|
||||||
uses: fjogeleit/yaml-update-action@main
|
run: yq '.runs.image = "docker://ghcr.io/super-linter/super-linter:slim-${{ env.RELEASE_VERSION }}"' -i slim/action.yml
|
||||||
|
|
||||||
|
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
|
||||||
with:
|
with:
|
||||||
valueFile: 'slim/action.yaml'
|
add: 'action.yml slim/action.yml'
|
||||||
propertyPath: 'runs.image'
|
default_author: github_actions
|
||||||
value: docker://ghcr.io/super-linter/super-linter:slim-${{ env.RELEASE_VERSION }}
|
message: 'Automated update of action.yml and slim/action.yml version numbers'
|
||||||
commitChange: true
|
|
||||||
message: update slim/action.yml version pointer
|
|
||||||
branch: main
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# We use ^{} to recursively deference the tag to get the commit the tag is pointing at.
|
# We use ^{} to recursively deference the tag to get the commit the tag is pointing at.
|
||||||
# Then, we use that reference to create new tags, so that the new tags point to the commit
|
# Then, we use that reference to create new tags, so that the new tags point to the commit
|
||||||
|
|
Loading…
Reference in a new issue