Skip to content

default commit message #213

default commit message

default commit message #213

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: automate.yml
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
#paths:
# - '.github/workflows/automate.yml'
schedule:
- cron: "*/3 * * * *"
branches: #[ master ]
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- 'master' # includes master
- 'main' # includes main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
github-workspace:
name: github-workspace
runs-on: ubuntu-20.04
steps:
- uses: styfle/cancel-workflow-action@0.11.0
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
- name: Print github workspace
run: |
printenv
build_and_test:
name: cargo build --release --all-features
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.11.0
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: |
rustup default stable
source "$HOME/.cargo/env"
# make
cargo build --release --all-features
- name: git log
run: |
git log