Merge pull request #20 from junjie-w/develop #22
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: Example - Compliment Generator | |
on: | |
pull_request: | |
branches: [main, develop] | |
push: | |
branches: [main] | |
jobs: | |
generate-compliment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.8.1 | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Build the action | |
run: npm run build | |
- name: Remove node_modules | |
run: rm -rf node_modules | |
- name: Run Compliment Generator with Local Compliment Bot Action | |
uses: ./ | |
with: | |
developer_name: Super Developer | |
compliment_style: motivational | |
- name: Run Compliment Generator with Released Compliment Bot Action | |
uses: junjie-w/compliment-bot-action@main | |
with: | |
developer_name: Code Wizard | |
compliment_style: funny |