Configlet Sync #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-22.04 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- 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@e27dddc79c92bc6e4562f268fffa5ed752639abd | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
filename: .github/configlet-sync-issue.md | |
update_existing: true |