Skip to content

hooks action

hooks action #1274

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: 'hooks action'
# Controls when the action will run.
on:
schedule:
- cron: '0 0 * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "commit to hook"
commit_to_hook:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with: { ref: hook }
# Runs a single command using the runners shell
- name: Update source code
run: echo "GitHub action run $GITHUB_RUN_NUMBER from $GITHUB_ACTOR"> hook.js
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
message: "Commit ${{ github.run_number }} by ${{ github.actor }}"
branch: 'hook'
add: '*.js'
push: true