Skip to content

Commit

Permalink
Create update-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegurado authored Mar 17, 2024
1 parent b2ba987 commit 8be4181
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update docs

on:
push:
branches: ["master"]
repository_dispatch:
types: [push]
workflow_dispatch:

jobs:
copy-readme:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- name: Git configuration
uses: michijs/.github/.github/actions/set-git-config-github-actions@main

- name: Import README.md file
shell: bash
run: wget -O README.md https://raw.githubusercontent.com/michijs/michijs/new-observers-v2/README.md

- name: Commit changes
uses: michijs/.github/.github/actions/commit-if-changes@main
with:
message: "Readme update"

- name: Push changes
uses: michijs/.github/.github/actions/pull-and-push@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8be4181

Please sign in to comment.