-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: update uds common gh actions to use uds run conditionals (#254)
Co-authored-by: Jordan McClintock <[email protected]>
- Loading branch information
1 parent
3e0fb5a
commit c9d92f0
Showing
23 changed files
with
423 additions
and
409 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CI Docs Shim | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
flavor: | ||
required: true | ||
type: string | ||
type: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
- name: Shim for ${{ inputs.type }} ${{ inputs.flavor }} | ||
run: | | ||
echo "Documentation-only change detected; marking ${{ inputs.type }} ${{ inputs.flavor }} as successful." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
name: Scan | ||
name: Lint | ||
|
||
on: | ||
# This workflow is triggered on pull requests to the main branch. | ||
pull_request: | ||
# milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). | ||
types: [milestoned, opened, synchronize] | ||
types: [milestoned, opened, reopened, synchronize] | ||
# This allows other repositories to call this workflow in a reusable way | ||
workflow_call: | ||
|
||
jobs: | ||
validate: | ||
run: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
permissions: | ||
contents: read # Allows reading the repo contents | ||
|
||
|
@@ -21,12 +20,17 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Environment setup | ||
uses: ./.github/actions/setup | ||
- name: Install UDS CLI | ||
uses: defenseunicorns/setup[email protected] | ||
with: | ||
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }} | ||
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }} | ||
ghToken: ${{ secrets.GITHUB_TOKEN }} | ||
version: v0.17.0 | ||
|
||
- name: Environment setup | ||
run: | | ||
uds run actions:setup-environment \ | ||
--set GH_TOKEN="${{ secrets.GITHUB_TOKEN }}" | ||
shell: bash | ||
|
||
- name: Install lint deps | ||
run: | | ||
|
Oops, something went wrong.