Skip to content

Commit

Permalink
Run action without Docker
Browse files Browse the repository at this point in the history
Move to composite action as described in
https://dev.to/github/build-your-own-github-action-without-a-docker-container-1eic.
The goal is to improve runtime by avoiding to build a Docker image
  • Loading branch information
mre committed May 29, 2022
1 parent ca2ad7e commit dda25ce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
17 changes: 0 additions & 17 deletions Dockerfile

This file was deleted.

14 changes: 12 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@ inputs:
default: false
required: false
runs:
using: "docker"
image: "Dockerfile"
using: "composite"
steps:
- name: install lychee
run: |
curl -LO 'https://github.com/lycheeverse/lychee/releases/download/v0.9.0/lychee-v0.9.0-x86_64-unknown-linux-gnu.tar.gz'
tar -xvzf lychee-v0.9.0-x86_64-unknown-linux-gnu.tar.gz
chmod 755 lychee
shell: bash
- run: |
source entrypoint.sh
shell: bash
branding:
icon: "external-link"
color: "purple"
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash -l
set -uxo pipefail

env

LYCHEE_TMP="/tmp/lychee/out.md"
GITHUB_WORKFLOW_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}?check_suite_focus=true"

Expand Down

0 comments on commit dda25ce

Please sign in to comment.