⬆️ Updates Actions-R-Us/actions-tagger action to v2.0.3 #45
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: CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-16.04 | |
name: Generate screenshot image | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
- name: Install Dependencies | |
run: npm install | |
- name: Pull from current branch | |
run: git pull origin ${GITHUB_REF##*/} | |
- name: Create dist folder if note exists | |
run: mkdir -p dist | |
- name: generate screenshot image | |
uses: ./ | |
with: | |
url: "https://www.google.com/" | |
name: "screenshot" | |
path: "images" | |
width: 400 | |
height: 400 | |
- name: Push changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Add images pulled from headless browser to folder | |
commit_options: '--no-verify --signoff' | |
- name: Archive screenshot image | |
uses: actions/upload-artifact@v2 | |
with: | |
name: open-screenshot | |
path: open-screenshot.png | |
- name: Download all workflow run artifacts | |
uses: actions/download-artifact@v2 |