Auto-update #55
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: Auto-update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
update-manifest: | |
name: Update manifest for latest Git tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out org.vim.Vim | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set credentials for gh CLI | |
run: | | |
mkdir -p ~/.config/gh | |
echo "{'github.com': {'user': '${{ github.actor }}', 'oauth_token': '${{ secrets.GITHUB_TOKEN }}'}}" > ~/.config/gh/hosts.yml | |
- id: auto-update | |
name: Run auto-update.py | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email [email protected] | |
./auto-update.py |