Skip to content

Commit

Permalink
use need to bypass hardcode re-use workflow input
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Sep 13, 2023
1 parent f8cc119 commit 624740a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
CARGO: "Cargo.toml"
CARGO_LOCA: "Cargo.toml"

permissions:
contents: write
Expand All @@ -15,10 +15,23 @@ on:
- "main"

jobs:
pre:
runs-on: ubuntu-latest
outputs:
cargo_loc: ${{ steps.foo.outputs.tag }}
-
id: foo
run: |
echo cargo_loc=$CARGO_LOCA >> $GITHUB_OUTPUT
name: Foo
shell: bash

ready:
needs:
- pre
uses: AUTOM77/Rust-Actions/.github/workflows/cargo-version.yml@main
with:
cargo_path: "$CARGO"
cargo_path: ${{ needs.pre.outputs.cargo_loc }}
secrets: inherit

push:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Cargo.toml
[package]
name = "rfbs"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

[dependencies]
Expand Down

0 comments on commit 624740a

Please sign in to comment.