Skip to content

Fixing every clippy warnings #18

Fixing every clippy warnings

Fixing every clippy warnings #18

Workflow file for this run

name: Deploy pkg to GitHub Packages
## never trigger this workflow automatically
on:
push:
tags:
- 'v*.*.*'
branches:
- 'reorganisation'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- name: Install Dependencies
run: cargo xtask dependencies -dip sudo
- name: Build deb and rpm packages
run: cargo xtask deploy debian redhat
- name: Publish to GitHub Packages
run: cargo publish --manifest-path xtask/Cargo.toml --token ${{ secrets.GITHUB_TOKEN }}
when: # only publish if the tag is a release

Check failure on line 37 in .github/workflows/pkg.yml

View workflow run for this annotation

GitHub Actions / Deploy pkg to GitHub Packages

Invalid workflow file

The workflow is not valid. .github/workflows/pkg.yml (Line: 37, Col: 9): Unexpected value 'when'
startsWith: ${{ github.ref }} # this is the tag name
value: 'refs/tags/v'