Skip to content

Update Known Hosts file #26

Update Known Hosts file

Update Known Hosts file #26

name: 'Update Known Hosts file'
on:
workflow_dispatch:
schedule:
- cron: '30 5 * * 1'
permissions:
contents: write
jobs:
known-hosts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- uses: adam7/[email protected]
with:
token: ${{ secrets.PLATFORMSH_CLI_TOKEN }}
- run: ./.github/update-known-hosts.php
- run: mv ./.github/known_hosts . && cp ./known_hosts ./dist/known_hosts
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update known_hosts file
commit_options: '--no-verify --signoff'
file_pattern: 'known_hosts dist/known_hosts'
commit_user_name: github-actions
commit_user_email: github-actions[bot]@users.noreply.github.com
commit_author: hw <github-actions[bot]@users.noreply.github.com>
push_options: ''