Skip to content

Instantly share code, notes, and snippets.

View ethomson's full-sized avatar
:shipit:

Edward Thomson ethomson

:shipit:
View GitHub Profile
#!/usr/bin/env perl -w
use strict;
use IPC::Open2;
use IPC::Open3;
my $SHA1_PATH="/Users/ethomson/Projects/libgit2/libgit2/tests/resources/testrepo.git";
my $SHA256_PATH="/tmp/testrepo_256.git";
my $MAPPING_PATH="${SHA256_PATH}/object-idx";
#define _GNU_SOURCE
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#define DATA "Hello, world.\n"
strategy:
matrix:
key: [value1, value2, value3, value4]
include:
- key: value1
other: other_value1
still_another: still_another_value1
- key: value2
other: other_value2
still_another: still_another_value2
name: Send a Tweet
on: [push]
jobs:
tweet:
runs-on: ubuntu-latest
steps:
- uses: ethomson/send-tweet-action@v1
with:
status: "Hello! This tweet was sent by a GitHub Actions workflow!"
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
name: Wiki Page Changed
on: gollum
jobs:
comment:
runs-on: ubuntu-latest
steps:
- run: |
echo "The page updated was: $(jq --raw-output .pages[0].html_url '${{ github.event_path }}')"
name: Comment
on: issue_comment
jobs:
comment:
runs-on: ubuntu-latest
steps:
- run: |
echo "The comment was: $(jq --raw-output .comment.body '${{ github.event_path }}')"
name: Self Hosted
on: [push]
jobs:
comment:
runs-on: self-hosted
steps:
- run: uname -a
name: Publish Release
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
name: Node CI
on:
pull_request:
branches:
jobs:
build:
runs-on: ubuntu-latest
name: Comment
on:
issues:
types: [opened]
jobs:
comment:
runs-on: ubuntu-latest
steps: