Skip to content

Commit

Permalink
Updates CD to set module version to tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Jul 8, 2022
1 parent 3e92b0d commit 42e5ce2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,16 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3
- name: Prepare package content
run: mkdir -pv package
- name: Transform module definition
run: |
mkdir -pv package
cp -v locenv-module.yml package
require 'yaml'
mod = YAML.load_file('locenv-module.yml')
mod['version'] = Integer(ENV['GITHUB_REF_NAME'])
File.open('package/locenv-module.yml', 'w') { |f| f.write mod.to_yaml.gsub("---\n", '') }
shell: ruby {0}
- name: Download Linux binary
uses: actions/download-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion locenv-module.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: autoconf
version: 0
version: -1
program:
linux: libautoconf.so
darwin: libautoconf.dylib
Expand Down

0 comments on commit 42e5ce2

Please sign in to comment.