Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull more repeated GH Action tasks into sub-actions #1964

Merged
merged 1 commit into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/util/build-protobuf/action.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/util/initialize/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Initialize
description: Check out Dart Sass and build the embedded protocol buffer.
inputs:
github-token: {required: true}
node-version: {required: false, default: 18}
dart-sdk: {required: false, default: stable}
architecture: {required: false}
runs:
using: composite
steps:
- uses: dart-lang/setup-dart@v1
with:
sdk: "${{ inputs.sdk }}"
architecture: "${{ inputs.architecture }}"

- uses: actions/setup-node@v3
with:
node-version: "${{ inputs.node-version }}"

- run: dart pub get
shell: bash

- run: npm install
shell: bash

- uses: bufbuild/buf-setup-action@v1.13.1
with: {github_token: "${{ inputs.github-token }}"}

- name: Check out embedded Sass protocol
uses: sass/clone-linked-repo@v1
with: {repo: sass/embedded-protocol, path: build/embedded-protocol}

- name: Generate Dart from protobuf
run: dart run grinder protobuf
env: {UPDATE_SASS_PROTOCOL: false}
shell: bash
12 changes: 12 additions & 0 deletions .github/util/sass-spec/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: sass-spec
description: Check out sass-spec and install its dependencies.
runs:
using: composite
steps:
- name: Check out sass-spec
uses: sass/clone-linked-repo@v1
with: {repo: sass/sass-spec}

- run: npm install
working-directory: sass-spec
shell: bash
Loading