diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 122d456..2d973ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -97,6 +97,7 @@ jobs: git config --local user.name "GitHub Action" git add Cargo.toml git commit -m "chore: bump version to ${{ needs.semantic-version.outputs.version }}" || exit 0 + git push || exit 0 - name: Create Release id: create_release @@ -161,6 +162,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v5 + with: + ref: main + fetch-depth: 1 + + - name: Pull latest changes + run: git pull origin main - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -223,6 +230,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v5 + with: + ref: main + fetch-depth: 1 + + - name: Pull latest changes + run: git pull origin main - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -279,10 +292,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v5 + with: + ref: main + fetch-depth: 1 - - name: Update Cargo.toml version - run: | - sed -i.bak 's/^version = ".*"/version = "${{ needs.semantic-version.outputs.version }}"/' Cargo.toml && rm Cargo.toml.bak + - name: Pull latest changes + run: git pull origin main - name: Install Rust uses: dtolnay/rust-toolchain@stable diff --git a/Cargo.toml b/Cargo.toml index c6badcc..2f60b4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "repos" -version = "0.0.2" +version = "0.0.3" edition = "2024" [dependencies]