Skip to content

Commit

Permalink
Try to fix YAML errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 8, 2024
1 parent d5a8099 commit 78cb565
Showing 1 changed file with 28 additions and 37 deletions.
65 changes: 28 additions & 37 deletions .github/workflows/build-lychee.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,29 @@
---
# 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:
shell: bash

env:
DOCKER_BUILDKIT: 1
REGISTRY: ${{ vars.REGISTRY }}
REGISTRY: "${{ vars.REGISTRY }}"

permissions: read-all

Expand 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:
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 78cb565

Please sign in to comment.