From 78cb565262eb4ac8ddedeea282db0aaa38b0345a Mon Sep 17 00:00:00 2001 From: Ryan Parman Date: Mon, 8 Apr 2024 14:32:39 -0600 Subject: [PATCH] Try to fix YAML errors. --- .github/workflows/build-lychee.yml | 65 +++++++++++++----------------- 1 file changed, 28 insertions(+), 37 deletions(-) diff --git a/.github/workflows/build-lychee.yml b/.github/workflows/build-lychee.yml index d1037f2..0fb7aeb 100644 --- a/.github/workflows/build-lychee.yml +++ b/.github/workflows/build-lychee.yml @@ -1,30 +1,21 @@ ---- -# This workflow uses actions that are not certified by GitHub. They are provided -# by a third-party and are governed by separate terms of service, privacy -# policy, and support documentation. - -################################################################################ -# DO NOT EDIT THIS FILE! -# -# 1. Edit the *.gotmpl.yml files instead. -# 2. go run generate-workflow.go -t _download-and-package.gotmpl.yml -p lychee -r 'lycheeverse/lychee' -c '10 11 * * *' -################################################################################ - name: Build lychee -on: - workflow_dispatch: + +"on": + workflow_dispatch: null push: - branches: [main] + branches: + - main paths: - - ".github/workflows/build-lychee.yml" - - "packages/lychee/**" + - .github/workflows/build-lychee.yml + - packages/lychee/** pull_request: - branches: [main] + branches: + - main paths: - - ".github/workflows/build-lychee.yml" - - "packages/lychee/**" + - .github/workflows/build-lychee.yml + - packages/lychee/** schedule: - - cron: "10 11 * * *" + - cron: 10 11 * * * defaults: run: @@ -32,7 +23,7 @@ defaults: env: DOCKER_BUILDKIT: 1 - REGISTRY: ${{ vars.REGISTRY }} + REGISTRY: "${{ vars.REGISTRY }}" permissions: read-all @@ -47,34 +38,34 @@ jobs: fail-fast: false container: - image: ghcr.io/northwood-labs/package-builder/ubuntu-v22.04:latest + image: "ghcr.io/northwood-labs/package-builder/ubuntu-v22.04:latest" credentials: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: "${{ github.actor }}" + password: "${{ secrets.GITHUB_TOKEN }}" outputs: - cache_hit: ${{ steps.check.outputs.cache-hit }} - package_version: ${{ steps.lookup_version.outputs.package_version }} + cache_hit: "${{ steps.check.outputs.cache-hit }}" + package_version: "${{ steps.lookup_version.outputs.package_version }}" steps: - name: Harden Runner - uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 with: egress-policy: audit - name: Lookup latest version of package id: lookup_version env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" run: | echo "package_version=$(download-asset latest-tag -r 'lycheeverse/lychee' -s)" >> $GITHUB_OUTPUT - name: Check to see if we've already built this version - uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 + uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 id: check with: key: "lychee-${{ steps.lookup_version.outputs.package_version }}" - path: "packages/lychee/dist" + path: packages/lychee/dist lookup-only: true compile: @@ -84,8 +75,8 @@ jobs: uses: northwood-labs/package-building/.github/workflows/_build-musl.yml@main secrets: inherit with: - package-name: "lychee" - package-version: ${{ needs.lookup.outputs.package_version }} + package-name: lychee + package-version: "${{ needs.lookup.outputs.package_version }}" build: if: needs.lookup.outputs.cache_hit != 'true' @@ -94,8 +85,8 @@ jobs: uses: northwood-labs/package-building/.github/workflows/_build-and-cache.yml@main secrets: inherit with: - package-name: "lychee" - package-version: ${{ needs.lookup.outputs.package_version }} + package-name: lychee + package-version: "${{ needs.lookup.outputs.package_version }}" upload: if: needs.lookup.outputs.cache_hit != 'true' @@ -104,8 +95,8 @@ jobs: uses: northwood-labs/package-building/.github/workflows/upload-to-s3.yml@main secrets: inherit with: - package-name: "lychee" - package-version: ${{ needs.lookup.outputs.package_version }} + package-name: lychee + package-version: "${{ needs.lookup.outputs.package_version }}" metadata_rpm: if: needs.lookup.outputs.cache_hit != 'true'