forked from exercism/emacs-lisp
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.24 KB
/
configlet-sync.yml
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
name: Configlet Sync
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
configlet:
if: github.repository_owner == 'exercism' # Stops this job from running on forks
timeout-minutes: 30
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.0.0
- name: Fetch configlet
uses: exercism/github-actions/configlet-ci@main
# GITHUB_TOKEN is not set when we run the fetch script, because we're in
# a composite action. Set GH_TOKEN so that `gh release download` can
# make authenticated requests (it fails otherwise).
env:
GH_TOKEN: ${{ github.token }}
- name: Configlet Sync
id: sync
shell: bash {0}
run: |
echo "SYNC_OUTPUT<<EOF" >> $GITHUB_ENV
configlet sync --tests --docs --metadata --filepaths >> $GITHUB_ENV
exit_code=$?
echo "EOF" >> $GITHUB_ENV
exit $exit_code
- name: Create issue
if: ${{ failure() }}
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/configlet-sync-issue.md