Skip to content

Commit

Permalink
update: integrate version in registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherbrumm committed Nov 2, 2023
1 parent f20aec5 commit 6d17e86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
- name: Check out the code
uses: actions/checkout@v2

- name: Merge Source Configs
run: python merge_configs.py
working-directory: ${{ github.workspace }}

- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch

- name: Merge Source Configs
run: python merge_configs.py --version ${{ steps.version.outputs.version }}
working-directory: ${{ github.workspace }}

- name: Create a new Release
if: github.event.pull_request.merged == true || github.event.ref == 'refs/heads/main'
run: |
Expand Down
8 changes: 8 additions & 0 deletions merge_configs.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import os
import yaml
import argparse

parser = argparse.ArgumentParser()

#-db DATABASE -u USERNAME -p PASSWORD -size 20000
parser.add_argument("-v", "--version", dest = "version", help="Source-Registry Version")

merged_config = {}

merged_config["version"] = args.version

# Iterate through all config.yml files
for root, dirs, files in os.walk("."):
for file in files:
Expand Down

0 comments on commit 6d17e86

Please sign in to comment.