Co-authored-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: niStee <52573120+niStee@users.noreply.github.comclear> Co-authored-by: GideonBear <87426140+GideonBear@users.noreply.github.com>
25 lines
492 B
YAML
25 lines
492 B
YAML
name: Check config file creation if not exists
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
TestConfig:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4.2.2
|
|
- run: |
|
|
CONFIG_PATH=~/.config/topgrade.toml;
|
|
if [ -f "$CONFIG_PATH" ]; then rm $CONFIG_PATH; fi
|
|
cargo build;
|
|
TOPGRADE_SKIP_BRKC_NOTIFY=true ./target/debug/topgrade --dry-run --only system;
|
|
stat $CONFIG_PATH;
|