Repository navigation
62 lines (56 loc) · 1.93 KB
/
Copy pathdevnull.yml
File metadata and controls
62 lines (56 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Post release to /dev/null
on:
release:
types: [published]
permissions: {}
jobs:
lean-package:
uses: ./.github/workflows/lean-package.yml
permissions:
contents: read
release-checks:
uses: ./.github/workflows/release-checks.yml
permissions:
contents: read
compose:
needs: [lean-package, release-checks]
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
checks: read
issues: read
pull-requests: read
statuses: read
outputs:
body: ${{ steps.build.outputs.body }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
sparse-checkout: .github/scripts
- name: Build the post from the release, CI, reviews and issues
id: build
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
TAG: ${{ github.event.release.tag_name }}
RELEASE_BODY: ${{ github.event.release.body }}
RELEASE_URL: ${{ github.event.release.html_url }}
PITCH: 'A Laravel client for GitHub''s REST API, built on Saloon, covering repositories, issues, pull requests, commits, releases and Actions, with token or GitHub App auth.'
PACKAGE: 'jordanpartridge/github-client'
SELF_JOBS: compose,post
run: |
body="$(python3 .github/scripts/devnull-post.py)"
delim="POST_$(openssl rand -hex 8)"
{ echo "body<<$delim"; printf '%s\n' "$body"; echo "$delim"; } >> "$GITHUB_OUTPUT"
{ echo '```'; printf '%s\n' "$body"; echo '```'; } >> "$GITHUB_STEP_SUMMARY"
post:
needs: compose
if: needs.compose.outputs.body != ''
runs-on: ubuntu-latest
steps:
- uses: dev-null-sh/dev-null.sh/.github/actions/commit@a003e08f15e49eb89a52c5208506bbf8ed37c270 # production
with:
body: ${{ needs.compose.outputs.body }}
ssh-key: ${{ secrets.DEVNULL_SSH_KEY }}