-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreadmebot.yml.example
48 lines (43 loc) · 1.43 KB
/
readmebot.yml.example
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
42
43
44
45
46
47
48
name: Update LaraDumps Version
on:
workflow_dispatch:
inputs:
version:
description: 'LaraDumps Version'
required: true
default: 'warning'
type: string
jobs:
UpdateReadme:
strategy:
fail-fast: true
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v3
# Docs: https://github.com/shivammathur/setup-php
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: symfony
extensions: json, mbstring, curl, intl, zlib
- name: 🗳️ Prepare Env
run: |
echo "Version: |$VERSION|"
echo "NEW_VERSION=$VERSION" >> $GITHUB_ENV
echo "READMEBOT_KEY=${{secrets.READMEBOT_KEY}}" >> $GITHUB_ENV
env:
VERSION: ${{inputs.version}}
- name: ⬇️ Download ReadmeBot
run: |
wget -O readmebot "https://github.com/laradumps/readmebot/blob/main/dist/readmebot?raw=true"
- name: 🌱 ReadmeBot Version
run: |
php readmebot --version
- name: 🤖 Run ReadmeBot
run: |
php readmebot update-version --new-version='${{env.NEW_VERSION}}' --github-credential='{"name":"${{secrets.READMEBOT_GIT_USER}}","email":"${{secrets.READMEBOT_GIT_EMAIL}}"}'