1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-20 20:21:18 -04:00

next-mdx-remote -> mdx-bundler (#729)

This commit is contained in:
2022-01-09 13:45:38 -05:00
committed by GitHub
parent b7313985db
commit 65416fcc1f
35 changed files with 1624 additions and 821 deletions

View File

@@ -11,6 +11,8 @@ tags:
image: "/static/images/notes/github-actions/actions-flow.png"
---
import Gist from "./components/embeds/Gist";
<img
className="center"
src="/static/images/notes/github-actions/actions-flow.png"
@@ -51,15 +53,15 @@ Here are the actions I've made so far, sorted by popularity as of this posting:
As an example of an _extremely_ simple (and almost completely unnecessary) action, the [Wait action](https://github.com/jakejarvis/wait-action) takes one input — a unit of time — and has the pipeline sleep for that amount of time. The [`Dockerfile`](https://github.com/jakejarvis/wait-action/blob/master/Dockerfile) is as simple as this:
<gist id="6a0830c7c3e514980b30fdf86b4931c5" file="Dockerfile" />
<Gist id="6a0830c7c3e514980b30fdf86b4931c5" file="Dockerfile" />
...with a super-short [`entrypoint.sh`](https://github.com/jakejarvis/wait-action/blob/master/entrypoint.sh):
<gist id="6a0830c7c3e514980b30fdf86b4931c5" file="entrypoint.sh" />
<Gist id="6a0830c7c3e514980b30fdf86b4931c5" file="entrypoint.sh" />
Using an action is also surprisingly simple, and more intuitive than [Travis CI](https://travis-ci.com/) or [CircleCI](https://circleci.com/), in my humble opinion. Pipelines in GitHub Actions are called ["workflows,"](https://help.github.com/en/github/automating-your-workflow-with-github-actions/configuring-a-workflow) and live in a file with [YAML syntax](https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions) in `.github/workflows`. An example of a `workflow.yml` file that uses the above action to wait 10 seconds (on both pushes and pull requests) would look something like:
<gist id="6a0830c7c3e514980b30fdf86b4931c5" file="workflow.yml" />
<Gist id="6a0830c7c3e514980b30fdf86b4931c5" file="workflow.yml" />
---