This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
chore(main): release 1.0.1 #40
Workflow file for this run
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
--- | |
name: Pull Request Build | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
information: | |
name: ℹ️ Addon Information | |
runs-on: ubuntu-latest | |
outputs: | |
name: ${{ steps.information.outputs.name }} | |
description: ${{ steps.information.outputs.description }} | |
target: ${{ steps.information.outputs.target }} | |
build: ${{ steps.information.outputs.build }} | |
architectures: ${{ steps.information.outputs.architectures }} | |
version: pr-${{ github.event.number }} | |
steps: | |
- name: ⤵️ Checkout | |
uses: actions/checkout@v4 | |
- name: ℹ️ Gather Information | |
id: information | |
uses: frenck/[email protected] | |
lint: | |
name: ✏️ Lint | |
needs: [ information ] | |
uses: ./.github/workflows/wf-lint.yaml | |
permissions: | |
pull-requests: read | |
contents: read | |
with: | |
addon-path: "${{ needs.information.outputs.target }}" | |
yamllint-config: ".yamllint.yaml" | |
build: | |
name: 🚀 Build | |
needs: [ information, lint ] | |
uses: ./.github/workflows/wf-docker-build.yaml | |
strategy: | |
matrix: | |
architecture: ${{ fromJson(needs.information.outputs.architectures) }} | |
with: | |
addon-architecture: ${{ matrix.architecture }} | |
addon-path: ${{ needs.information.outputs.target }} | |
addon-version: ${{ needs.information.outputs.version }} | |
addon-name: ${{ needs.information.outputs.name }} | |
addon-description: ${{ needs.information.outputs.description }} | |
docker-tags: | | |
ghcr.io/${{ github.repository }}/${{ matrix.architecture }}:${{ needs.information.outputs.version }} |