Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
brogdonm committed Apr 10, 2024
0 parents commit ed0ddd6
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Generate release tag and PR for version update"

on:
push:
branches:
- "main"

jobs:

# Update the rust workspace version (if it hasn't yet been updated), or if it
# has been updated, created a tag to reflect the new workspace version.
version-update:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install cargo-edit
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-edit
- name: Update workspace version
shell: bash
run: cargo set-version 0.2.0 --workspace
- name: Show git status
shell: bash
run: git status
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "cargo-edit-issue-891"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
18 changes: 18 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Recreate issue

This is a sample repository to reproduce issue https://github.com/killercup/cargo-edit/issues/891.

Looking at the actions outputs should show:

- `windows-latest`

```shell
Cargo.toml
Cargo.lock
```

- `ubuntu-latest`

```shell
Cargo.toml
```
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit ed0ddd6

Please sign in to comment.