Skip to content

Instantly share code, notes, and snippets.

@krzema12
Created November 20, 2022 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krzema12/c34a2eec01f3c1d756194ebe9b9c88b4 to your computer and use it in GitHub Desktop.
Save krzema12/c34a2eec01f3c1d756194ebe9b9c88b4 to your computer and use it in GitHub Desktop.
# This file was generated using Kotlin DSL (.github/workflows/testing.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/krzema12/github-workflows-kt
name: Build
on:
push:
branches:
- main
jobs:
check_yaml_consistency:
runs-on: ubuntu-latest
steps:
- id: step-0
name: Check out
uses: actions/checkout@v3
- id: step-1
name: Execute script
run: rm '.github/workflows/build.yaml' && '.github/workflows/build.main.kts'
- id: step-2
name: Consistency check
run: git diff --exit-code '.github/workflows/build.yaml'
build:
runs-on: ubuntu-latest
needs:
- check_yaml_consistency
steps:
- id: step-0
uses: actions/checkout@v3
- id: step-1
uses: gradle/gradle-build-action@v2
with:
arguments: build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment