Skip to content

Commit 3e9c93e

Browse files
committed
describe how to notify the material
1 parent f8fd574 commit 3e9c93e

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# material
2-
Collecting all material necessary for the workshop
2+
Collecting all [material][] necessary for the workshop
33

44
## Usage
5+
The archive is created when this repository is notified of a change. It automatically builds the archive and publishes it as a package.
6+
7+
### Notifying
8+
If one wishes to kick of a fresh build of the artifact one can use the GitHub action `notify-material` in this repository. Copy it to the `.github/workflows` directory of the notifying repository and customize the repository.
9+
10+
The notifying repository should also have a `ACCESS_TOKEN` secret corresponding to the `user:personal_access_token` where the personal acces token has repo rights.
11+
12+
## Manual
513
Execute the `make` command. This creates a `material.tar.gz` that should be copied
614
onto a thumb drive.
15+
16+
[material]: https://github.com/boiding/material/releases/download/latest/material.tar.gz

notify-material.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Notify material
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
create-archive:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Notify material of change
11+
run: >-
12+
curl -X POST https://api.github.com/repos/boiding/material/dispatches
13+
-H 'Accept: application/vnd.github.everest-preview+json'
14+
-u '${{ secrets.ACCESS_TOKEN }}'
15+
--data '{"event_type": "notification-of-change", "client_payload": { "repository": "node-starter" }}'

0 commit comments

Comments
 (0)