Skip to content

Commit

Permalink
Merge pull request #10 from ACCESS-NRI/9-initial-checksum-truth
Browse files Browse the repository at this point in the history
Added new `workflow_dispatch` workflow for initial creation of checksums
  • Loading branch information
CodeGat authored Feb 22, 2024
2 parents 47ecdc6 + 3d00902 commit 4b0e3a8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/generate-initial-checksums.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Generate Initial Checksums
on:
workflow_dispatch:
inputs:
config-branch-name:
type: string
required: true
description: The configuration branch that will be run that will generate the checksums.
commit-checksums:
type: boolean
required: true
description: Whether to commit the checksums to the target branch once generated.
committed-checksum-location:
type: string
required: false
default: ./testing/checksums
description: "If `commit-checksums`: Where in the repository the generated checksums should be committed to."
committed-checksum-tag:
type: string
required: false
description: "If `commit-checksums`: An optional tag to attach to the committed checksums"
jobs:
generate-checksums:
name: Generate Checksums
uses: access-nri/reproducibility/.github/workflows/generate-initial-checksums.yml@main
with:
model-name: access-om2
config-branch-name: ${{ inputs.config-branch-name }}
commit-checksums: ${{ inputs.commit-checksums }}
committed-checksum-location: ${{ inputs.committed-checksum-location }}
committed-checksum-tag: "${{ inputs.config-branch-name }}-1.0"
environment-name: "Gadi Initial Checksum"
permissions:
contents: write
secrets: inherit
4 changes: 4 additions & 0 deletions README-DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,7 @@ If the reproduction check fails during a scheduled check, something is wrong. Th
#### Config Validation: `validate-json.yml`

This workflow is used to check that modifications to `*.json` files are in line with the associated `*.schema.json`.

#### Initial Checksum Creation: `generate-initial-checksums.yml`

This `workflow_dispatch`-triggered workflow generates checksums of a given config branch, and optionally commits them. This is useful for generating checksums for an entirely new config branch, so the workflows above have something to compare against.

0 comments on commit 4b0e3a8

Please sign in to comment.