Skip to content

Add a photo

Add a photo #4

Workflow file for this run

name: "Add a photo"
on:
workflow_dispatch:
inputs:
content:
description: "File content"
type: string
required: true
datetime:
description: "Datetime"
type: string
required: true
concurrency: ci-${{ github.action }}
jobs:
process:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: 'master'
- uses: actions/setup-node@v3
with:
node-version: 17.7
- name: Run script
run: node .github/workflows/scripts/images.js '${{ inputs.datetime }}' '${{ inputs.content }}'
- name: Commit and push
run: |
git config --global user.email "[email protected]"
git config --global user.name "damian [bot]"
git add .
git commit -m "Add a photo from Apple shortcuts" || echo "Nothing to commit"
git fetch origin master
git push origin HEAD:master