Refactored CI/CD

This commit is contained in:
DaanV2
2022-10-28 11:08:12 +02:00
parent 9992494cac
commit 836d5679fc
4 changed files with 22 additions and 32 deletions

View File

@@ -1,32 +1,23 @@
# This is a basic workflow to help you get started with Actions
name: Compress Json Schemas
# Controls when the action will run.
name: 🖥️ Compress Json Schemas
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: compress-schemas
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
name: 🖥️ Compress Schemas
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v3
- uses: DaanV2/Json-Schema-Action-Compression@v2.1
@@ -34,12 +25,12 @@ jobs:
with:
specificationFile: "${{github.workspace}}/source/compress_specification.json"
- name: Commit changes
- name: ✏️ Commit changes
continue-on-error: true
run: |
cd ${{github.workspace}}
git config --global user.email "Bot@Blockception.com"
git config --global user.name "Blockception[bot]"
git config --global user.email "Blockception@github.com"
git config --global user.name "Orbi[bot]"
git add .
git commit -m "auto: Generated Json Schemas"
git push