Feature: Add multiple workflows #5
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: Capture GitHub Profile Screenshot | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
capture-screenshot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Puppeteer | |
run: npm install puppeteer | |
- name: Capture Screenshot | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: node capture-screenshot.js ${{ github.event.issue.user.login }} | |
- name: Upload Screenshot | |
uses: actions/upload-artifact@v3 | |
with: | |
name: screenshot | |
path: screenshots/ |