Skip to content

Commit

Permalink
fix: post merge release tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
Datron committed Apr 23, 2024
1 parent 15840e7 commit 3b7e262
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/ci_merge_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.SUPERPOSITION_TOKEN }}

- name: Install Rust
uses: dtolnay/rust-toolchain@master
Expand All @@ -28,18 +29,24 @@ jobs:
targets: wasm32-unknown-unknown
components: rustfmt, clippy

- name: Semver release
uses: cocogitto/cocogitto-action@v3
id: release
- name: install cargo-edit to perform set-version
uses: baptiste0928/[email protected]
with:
release: true
git-user: "Superposition Bot"
git-user-email: "[email protected]"
check-latest-tag-only: true
crate: cargo-edit

- name: Push code to main
- name: install cocogitto
uses: baptiste0928/[email protected]
with:
crate: cocogitto

- name: Semver release
shell: bash
run: |
git config user.email "[email protected]"
git config user.name "Superposition Bot"
git push --follow-tags origin main
cog bump --auto --skip-ci-override "[skip ci]"
- name: Push code to main
shell: bash
run: |
git push --follow-tags
4 changes: 2 additions & 2 deletions crates/experimentation_platform/src/db/models.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use crate::db::schema::*;
use chrono::{DateTime, NaiveDateTime, Utc};

use diesel::{Insertable, Queryable, QueryableByName, Selectable};
use diesel::{query_builder::QueryId, Insertable, Queryable, QueryableByName, Selectable};
use serde::{Deserialize, Serialize};
use serde_json::Value;

#[derive(
Debug, Clone, Copy, PartialEq, Deserialize, Serialize, diesel_derive_enum::DbEnum,
Debug, Clone, Copy, PartialEq, Deserialize, Serialize, diesel_derive_enum::DbEnum, QueryId,
)]
#[DbValueStyle = "UPPERCASE"]
#[ExistingTypePath = "crate::db::schema::sql_types::ExperimentStatusType"]
Expand Down

0 comments on commit 3b7e262

Please sign in to comment.