-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.08 KB
/
do.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: do
on:
workflow_dispatch:
inputs:
runs-on:
default: 'ubuntu-latest'
required: true
cargo-do:
required: true
commit-msg:
required: false
run-name: on ${{ github.event.inputs.runs-on }} do ${{ github.event.inputs.cargo-do }}
env:
RUST_BACKTRACE: 1
RUSTFLAGS: '--codegen=debuginfo=0 --deny=warnings'
RUSTDOCFLAGS: '--deny=warnings'
CARGO_TERM_COLOR: always
ZNG_TP_LICENSES: false
jobs:
do:
runs-on: ${{ github.event.inputs.runs-on }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- run: cargo do ${{ github.event.inputs.cargo-do }}
- if: ${{ github.event.inputs.commit-msg && github.event.inputs.commit-msg != '' }}
name: commit all changes
run: |
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
git add -A
git commit -m "${{ github.event.inputs.commit-msg }}"
git push