Skip to content

Commit

Permalink
Fix releases for Xandra and Broadway packages (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Jul 14, 2024
1 parent 7fd6e42 commit 3cddf10
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish-mix-hex-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
- "redix"
- "req"
- "tesla"
- "xandra"
required: true
action:
description: "Publish release"
Expand Down Expand Up @@ -137,26 +138,26 @@ jobs:
case 'elixir':
srcFilePath = `${needs.config.outputs.working_directory}/mix.exs`;
core.debug(`Source file path: ${srcFilePath}`)
srcVersionRegex = /@version\s+"[^"]+"/;
core.debug(`Source version regex: ${srcVersionRegex}`)
vsnLineTemplate = `@version "${version}"`;
core.debug(`Version line template: ${vsnLineTemplate}`)
core.setOutput('srcFilePath', srcFilePath);
break;
case 'elixir-erlang':
case 'erlang':
srcFilePath = `${needs.config.outputs.working_directory}/src/${needs.config.outputs.package_name}.app.src`;
core.debug(`Source file path: ${srcFilePath}`)
srcVersionRegex = /{vsn,\s+"[^"]+"},/;
core.debug(`Source version regex: ${srcVersionRegex}`)
vsnLineTemplate = `{vsn, "${version}"},`;
core.debug(`Version line template: ${vsnLineTemplate}`)
core.setOutput('srcFilePath', srcFilePath);
break;
default:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,13 @@ jobs:
config-name: release-drafter-templates/opentelemetry-tesla.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

opentelemetry-xandra-release:
name: '[opentelemetry-xandra-release] Draft release'
runs-on: ubuntu-22.04
steps:
- uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter-templates/opentelemetry-xandra.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion instrumentation/opentelemetry_broadway/mix.exs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
defmodule OpentelemetryBroadway.MixProject do
use Mix.Project

@version "0.1.0"

def project do
[
app: :opentelemetry_broadway,
version: "0.1.0",
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
docs: [
Expand Down

0 comments on commit 3cddf10

Please sign in to comment.