Comments (7)
I published MLC as a GitHub action. It is now available in the marketplace: https://github.com/marketplace/actions/markup-link-checker-mlc
from mlc.
Sorry for this. I did a mistake when I tested the action locally. With the latest version it should work. I will update the Readme too as soon as possible. I use my own action here: https://github.com/becheran/wer-rusted-der-rostet-nicht/blob/master/.github/workflows/blank.yml
You can add the mlc cli arguments via
with:
args:
from mlc.
@stanislav-tkach thanks for opening this issue. Sounds like a good idea to have it as custom GitHub action. Unfortunately I am not really know GitHub actions right now. I am still using the GitLab CI/CD pipeline that I am used to. Could you support on this feature?
from mlc.
@becheran I have used Github Actions for some time, but I have never tried to write an action. I don't have much experience with typescript, but perhaps it would be interesting to try.
from mlc.
@becheran Thanks!
from mlc.
@becheran Could you please update the readme with an instruction on how to use this action? Currently the action in the marketplace uses the same readme as the mlc repository, so it only mentions how to install it using cargo or how to download a binary version.
I'm getting the following error when using this action:
Build container for action use: '/home/runner/work/_actions/becheran/mlc/v0.13.7/Dockerfile'.
/usr/bin/docker build -t 1e5c35:838cb1c7c4d344deb7da52394db80165 -f "/home/runner/work/_actions/becheran/mlc/v0.13.7/Dockerfile" "/home/runner/work/_actions/becheran/mlc/v0.13.7"
Sending build context to Docker daemon 290.3kB
Step 1/4 : FROM ubuntu:18.04
18.04: Pulling from library/ubuntu
171857c49d0f: Pulling fs layer
419640447d26: Pulling fs layer
61e52f862619: Pulling fs layer
419640447d26: Verifying Checksum
419640447d26: Download complete
61e52f862619: Download complete
171857c49d0f: Verifying Checksum
171857c49d0f: Download complete
171857c49d0f: Pull complete
419640447d26: Pull complete
61e52f862619: Pull complete
Digest: sha256:646942475da61b4ce9cc5b3fadb42642ea90e5d0de46111458e100ff2c7031e6
Status: Downloaded newer image for ubuntu:18.04
---> 56def654ec22
Step 2/4 : RUN apt-get update; apt-get install -y ca-certificates; update-ca-certificates
---> Running in 68c6b88f7735
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [211 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1745 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1352 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.4 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2165 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [45.9 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [239 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2115 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
Fetched 21.3 MB in 3s (7789 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libssl1.1 openssl
The following NEW packages will be installed:
ca-certificates libssl1.1 openssl
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 2060 kB of archives.
After this operation, 5671 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.1 amd64 1.1.1-1ubuntu2.1~18.04.6 [1301 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssl amd64 1.1.1-1ubuntu2.1~18.04.6 [614 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 ca-certificates all 20190110~18.04.1 [146 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2060 kB in 1s (2626 kB/s)
Selecting previously unselected package libssl1.1:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4045 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1-1ubuntu2.1~18.04.6_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.6) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.1.1-1ubuntu2.1~18.04.6_amd64.deb ...
Unpacking openssl (1.1.1-1ubuntu2.1~18.04.6) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20190110~18.04.1_all.deb ...
Unpacking ca-certificates (20190110~18.04.1) ...
Setting up libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.6) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up openssl (1.1.1-1ubuntu2.1~18.04.6) ...
Setting up ca-certificates (20190110~18.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
127 added, 0 removed; done.
Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
Processing triggers for ca-certificates (20190110~18.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 68c6b88f7735
---> 7a5c47c2e9f8
Step 3/4 : ADD ./target/release/mlc /bin/mlc
ADD failed: stat /var/lib/docker/tmp/docker-builder516801145/target/release/mlc: no such file or directory
Warning: Docker build failed with exit code 1, back off 8.841 seconds before retry.
/usr/bin/docker build -t 1e5c35:838cb1c7c4d344deb7da52394db80165 -f "/home/runner/work/_actions/becheran/mlc/v0.13.7/Dockerfile" "/home/runner/work/_actions/becheran/mlc/v0.13.7"
Sending build context to Docker daemon 290.3kB
Step 1/4 : FROM ubuntu:18.04
---> 56def654ec22
Step 2/4 : RUN apt-get update; apt-get install -y ca-certificates; update-ca-certificates
---> Using cache
---> 7a5c47c2e9f8
Step 3/4 : ADD ./target/release/mlc /bin/mlc
ADD failed: stat /var/lib/docker/tmp/docker-builder928401817/target/release/mlc: no such file or directory
Warning: Docker build failed with exit code 1, back off 6.914 seconds before retry.
/usr/bin/docker build -t 1e5c35:838cb1c7c4d344deb7da52394db80165 -f "/home/runner/work/_actions/becheran/mlc/v0.13.7/Dockerfile" "/home/runner/work/_actions/becheran/mlc/v0.13.7"
Sending build context to Docker daemon 290.3kB
Step 1/4 : FROM ubuntu:18.04
---> 56def654ec22
Step 2/4 : RUN apt-get update; apt-get install -y ca-certificates; update-ca-certificates
---> Using cache
---> 7a5c47c2e9f8
Step 3/4 : ADD ./target/release/mlc /bin/mlc
ADD failed: stat /var/lib/docker/tmp/docker-builder009410084/target/release/mlc: no such file or directory
Error: Docker build failed with exit code 1
from mlc.
Now everything works great, thanks!
from mlc.
Related Issues (20)
- Only extract anchor targets/link fragments HOT 2
- Potential alternative/similar project: mdbook-linkcheck HOT 1
- (maybe) Support a `--secure-only` flag, that warns about http (vs https) links HOT 1
- Missing binaries for 0.15.x releases HOT 2
- Directory parameter is ignored if provided after an option HOT 5
- Support for ignore link list from a file HOT 3
- Allow specifying HTTP request parameters HOT 10
- Latest Docker images broken HOT 1
- Line and column wrong with windows typical line breaks
- Support reporting redirections HOT 2
- Format links in vs code console so that ctrl + left click opens the file at right location HOT 1
- First line separator is wrong on Windows HOT 1
- Use GitHub actions workflow commands
- Installation failed HOT 2
- Evaluate keeping compatibility with some not-so-old glibc HOT 7
- Option to check links in code blocks HOT 2
- Links with spaces in not parsed correctly HOT 1
- Support `ignore` or `disable` lines and blocks in checked files HOT 2
- Support reading ` .gitignore` if present to ignore paths HOT 2
- `.mlc.toml` options are not used HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlc.