electron-fingerprints/.github/workflows/update.yaml

31 lines
911 B
YAML
Raw Normal View History

2022-03-29 08:58:24 +00:00
on:
schedule:
- cron: '0 18 * * *'
name: Update
jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Get current date
uses: josStorer/get-current-time@v2
id: current-time
with:
# Versioning is current date
format: "YYYY.M.D"
- uses: stefanzweifel/git-auto-commit-action@v4
2022-03-29 08:58:24 +00:00
id: commit
with:
commit_message: Update Electron Fingerprints
commit_author: actions-user <65916846+actions-user@users.noreply.github.com>
file_pattern: hashes/*.json lookup/*.json
2022-03-29 08:58:24 +00:00
status_options: '--untracked-files=no'
- name: NPM Version Bump
run: |
npm version "v${{ steps.current-time.outputs.formattedTime }}"
git push origin --tags
if: ${{ steps.commit.output.changes_detected}}
# TODO: NPM Publish