Skip to content

Commit af04c70

Browse files
authored
chore(deps): install svu from archive (#622)
1 parent 7b26e4a commit af04c70

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/test-and-tag.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,26 @@ jobs:
4343
runs-on: ubuntu-latest
4444
needs: test
4545
if: ${{ github.ref == 'refs/heads/main' }}
46-
container: ghcr.io/caarlos0/svu:v1.10.1
4746
steps:
4847
- name: Checkout
4948
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
5049
with:
5150
fetch-depth: 0
5251
token: ${{ secrets.EZ_BOT_TOKEN }}
5352

53+
- name: Install svu
54+
run: |
55+
export SVU_VERSION="v1.10.1"
56+
curl -Lo ./svu.tar.gz "https://github.com/caarlos0/svu/releases/download/${SVU_VERSION}/svu_${SVU_VERSION#v}_linux_amd64.tar.gz"
57+
tar -C "$HOME" -xzf svu.tar.gz
58+
rm svu.tar.gz
59+
5460
- name: Tag new version
5561
run: |
56-
if [ $(git tag -l "$(svu next)") ]; then
62+
if [ $(git tag -l "$(~/svu next)") ]; then
5763
echo "Tag already exists, no release necessary"
5864
else
5965
echo "Tagging new version"
60-
git tag "$(svu next)"
66+
git tag "$(~/svu next)"
6167
git push --tags
6268
fi

renovate.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
"matchStrings": [
2424
"# renovate:\\sdatasource=(?<datasource>.*?)\\sdepName=(?<depName>.*?)\\s.*@(?<currentValue>.*)"
2525
]
26+
},
27+
{
28+
"description": "Upgrade arbitrary dependencies in GitHub action workflows declared with 'export *_ENV'",
29+
"fileMatch": ["(^workflow-templates|\\.github/workflows)/[^/]+\\.ya?ml$"],
30+
"matchStrings": [
31+
"# renovate: datasource=(?<datasource>.*?)\\sdepName=(?<depName>.*?)\\s+export .*?_VERSION=\"(?<currentValue>.*)\""
32+
]
2633
}
2734
],
2835
"packageRules": [

0 commit comments

Comments
 (0)