Skip to content

Commit

Permalink
Replace GHA workflows
Browse files Browse the repository at this point in the history
* Remove generate ci documentation workflow
* Create `artifacts` and `checks` makefile targets
  • Loading branch information
nikitawootten-nist committed Jul 18, 2023
1 parent 0e7fc1a commit a61db39
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 385 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/package-release.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: Validate Repo Markdown
name: Periodic Checks
on:
workflow_call:
inputs:
create_issue:
description: "create new GitHub issue if broken links found"
required: false
default: false
type: boolean
schedule:
- cron: "0 0 * * MON"
- cron: "0 0 * * THU"
workflow_dispatch:
jobs:
validate-repo-markdown:
name: Validate Repo Markdown
runs-on: ubuntu-20.04
linkcheck:
name: Validate Markdown Links
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
submodules: recursive
- name: Set up NodeJS
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version-file: "build/.nvmrc"
cache: "npm"
Expand All @@ -25,13 +21,12 @@ jobs:
run: |
make linkcheck
working-directory: build
id: linkchecker
- name: Create issue if bad links detected in repo
if: failure() && inputs.create_issue == true
- name: Create an issue if bad links are detected
if: failure()
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f # v3.0.0
with:
title: Scheduled Check of Markdown Documents Found Bad Hyperlinks
content-filepath: mlc_report.log
content-filepath: build/generated/mlc_report.log
labels: |
bug
Scope: Documentation
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Package Release
on:
push:
tags:
- v*
jobs:
package-release:
name: Package Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
submodules: recursive
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Generate artifacts
run: |
make artifacts
working-directory: build
- name: Create release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.COMMIT_TOKEN }}
draft: true
generate_release_notes: true
fail_on_unmatched_files: true
files: |
build/generated/oscal_*
30 changes: 0 additions & 30 deletions .github/workflows/status-ci-cd.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: OSCAL CI/CD
on:
push:
branches:
- main
- develop
- "feature-*"
- "release-*"
pull_request:
branches:
- main
- develop
- "feature-*"
- "release-*"
workflow_dispatch:
jobs:
checks:
name: Status Checks
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
submodules: recursive
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version-file: "build/.nvmrc"
cache: "npm"
cache-dependency-path: "build/package-lock.json"
- name: Generate artifacts
run: |
make --keep-going all
working-directory: build
69 changes: 0 additions & 69 deletions .github/workflows/workflow-generate-ci-documentation.yml

This file was deleted.

Loading

0 comments on commit a61db39

Please sign in to comment.