Skip to content

Commit

Permalink
Merge branch 'main' into shellcheck-the-shells
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Oct 4, 2024
2 parents 88dc2e0 + 0685c7c commit e841bd2
Show file tree
Hide file tree
Showing 24 changed files with 496 additions and 409 deletions.
16 changes: 0 additions & 16 deletions .github/actions/clean-runner/action.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/actions/debug-output/action.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/actions/playwright/action.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/actions/save-logs/action.yaml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/actions/setup/action.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/actions/test-deploy/action.yaml

This file was deleted.

13 changes: 12 additions & 1 deletion .github/actions/test-flavor/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,18 @@ runs:
- name: Test latest tag deployment for flavor
id: set-required
run: |
git clone --depth 1 --branch $(git describe --tags `git rev-list --tags --max-count=1`) $(git remote get-url origin) upgrade-test
# Check if any tag exists
TAG=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null || echo "")
if [ -z "$TAG" ]; then
echo "No Git tags found. Skipping step."
exit 0
fi
# Clone the repository with the latest tag
git clone --depth 1 --branch "$TAG" $(git remote get-url origin) upgrade-test
cd upgrade-test
# Extract upgrade flavors and set output
echo "upgrade-flavors=$(cat zarf.yaml | yq '.components[] | select(.only | has("flavor")) | .only.flavor' | paste -s -d, -)" >> "$GITHUB_OUTPUT"
shell: bash
34 changes: 0 additions & 34 deletions .github/actions/verify-badge/action.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/callable-ci-docs-shim.yaml
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."
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Metadata
name: PR Title Check

on:
# This workflow is triggered on pull requests to the main branch.
Expand All @@ -11,9 +11,8 @@ on:
workflow_call:

jobs:
validate:
run:
runs-on: ubuntu-latest
name: Validate PR Title
permissions:
pull-requests: read # Allows reading pull request metadata.
contents: read # Allows pulling repo contents.
Expand Down
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

Expand All @@ -21,12 +20,17 @@ jobs:
with:
fetch-depth: 0

- name: Environment setup
uses: ./.github/actions/setup
- name: Install UDS CLI
uses: defenseunicorns/setup-uds@v1.0.0
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: |
Expand Down
Loading

0 comments on commit e841bd2

Please sign in to comment.