Skip to content

Commit

Permalink
fix(semrel): don't make commits
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Feb 23, 2024
1 parent 29e4c2f commit 39d6e48
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,10 @@ jobs:
github-token: ${{ secrets.ADFINISBOT_PAT }}
allow-initial-development-versions: true

- run: pipx install poetry
if: steps.semrel.outputs.version != ''

- name: Adjust Versions
if: steps.semrel.outputs.version != ''
run: |
cd api && poetry version ${{ steps.semrel.outputs.version }} && cd -
cd ember && yarn version --no-commit-hooks --no-git-tag-version --new-version ${{ steps.semrel.outputs.version }}
- name: Adjust Versions in Chart.yaml
if: steps.semrel.outputs.version != ''
uses: mikefarah/[email protected]
with:
cmd: yq eval '(.appVersion = "${{ steps.semrel.outputs.version }}") | (.version = "${{ steps.semrel.outputs.version }}" )' --inplace ./charts/outdated/Chart.yaml

- name: Release Commit
if: steps.semrel.outputs.version != ''
run: |
git config user.name "Semantic Release"
git config user.email "[email protected]"
git add ember/package.json api/pyproject.toml charts/outdated/Chart.yaml
git commit -m "chore(release): ${{ steps.semrel.outputs.version }} [skip ci]"
git push
sed -r 's/"(0.0.0|latest)"/"${{ steps.semrel.outputs.version }}"/g' -i ./ember/package.json ./api/pyproject.toml ./charts/outdated/Chart.yaml
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Outdated"
version = "0.1.0"
version = "0.0.0"
description = "Shows all added projects, and their packages, also indicates when a package is no longer supported."
authors = ["Adfinis AG"]
license = "GPL-3.0-or-later"
Expand Down
4 changes: 2 additions & 2 deletions charts/outdated/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ maintainers:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: "0.0.0"
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
appVersion: "latest"
dependencies:
- name: postgresql
version: ~14.0.5
Expand Down
2 changes: 1 addition & 1 deletion ember/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "outdated",
"version": "0.1.0",
"version": "0.0.0",
"private": true,
"description": "Small description for outdated goes here",
"repository": "https://github.com/adfinis/outdated",
Expand Down

0 comments on commit 39d6e48

Please sign in to comment.