Skip to content

Commit

Permalink
Fix: workflow triggers for release are broken (#12)
Browse files Browse the repository at this point in the history
* feature: add templates for scripts via env variables

* fix: bundle versioning

* fix: define variable OPERATOR_VERSION_STRICT

* fix: workflow_dispatch trigger

* fix: only run buildah on changes

* fix: add variables to release output; use latest for buildah

* fix: do not use comments in env definitions for actions

* fix: use semver compliant strings for dev branches

* fix: allow every branch to get current semver info

* use current branch to compare tags

* output current version on error

* fix: use correct branch on semvercheck

* fix: no current_strict available

* fix: feature branches develop for next release

* fix: update operator-sdk version

* fix: remove deprecated config

* fix: remove deprecated manager-config

* fix: remove manager_config_patch.yaml from config

* fix: add basic configs

* fix: missing templates in dockerfile

* fix: put templates in correct directory

* fix: make leader election configurable; add runAsUser

* fix: add container Capabilities

* fix: use upstream buildah image

* fix: make templates work with dockerfiles

* fix: do not deploy for now

* fix: add missing docker copy entries

* fix: adjust workflow

* fix: use semver on all branches for olm

* fix: calculate semver from dev

* fix: calculate correct changelog
  • Loading branch information
toms-place authored Jun 21, 2023
1 parent b60988f commit 4223efe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ jobs:
uses: ietf-tools/[email protected]
with:
token: ${{ github.token }}
branch: ${{ github.ref_name }}
# fall back to dev because we want to have a valid semver
branch: ${{ fromJSON('{"main":"dev"}')[github.ref_name] || github.ref_name }}
noVersionBumpBehavior: current

- name: Set OPERATOR_VERSION
Expand Down Expand Up @@ -193,10 +194,11 @@ jobs:
steps:
- name: Update CHANGELOG
id: changelog
uses: requarks/[email protected].0
uses: requarks/[email protected].1
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
# calculate the changelog from the last tag to the current dev state
fromTag: ${{ fromJSON('{"main":"dev"}')[github.ref_name] || github.ref_name }}
toTag: ${{ env.CURRENT }}
# Create a new release on GitHub with the semantic OPERATOR_VERSION number
- name: Create Release
Expand Down

0 comments on commit 4223efe

Please sign in to comment.