Skip to content

Commit

Permalink
test new commit/pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
memerchik committed Jun 14, 2024
1 parent d69eb0f commit 6b3b9da
Showing 1 changed file with 35 additions and 10 deletions.
45 changes: 35 additions & 10 deletions .github/workflows/github-actions-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: Extract branch name
- name: Extract branch name & create the nbconvert branch
shell: bash
run: |
echo "GitHub ref_name ${{ github.ref_name }}"
git checkout -b aboba
git push -u origin aboba
git checkout -b nbconvertt
git push -u origin nbconvertt
id: extract_branch
# - name: preflight
# id: preflight
Expand All @@ -31,14 +31,39 @@ jobs:
# Use the output from the `preflight` step
- name: Use the output
run: echo "Notebook path ${{ steps.preflight.outputs.notebook_path }} - workspace ${{ steps.preflight.outputs.workspace }}"
- name: commit changes
uses: stefanzweifel/git-auto-commit-action@v4
# - name: commit changes
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# file_pattern: '*.md'
# - name: create pull request
# run: gh pr create -B "master" -H "nbconvert" --title 'Merge nbconvert into master' --body 'Created by Github action'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
file_pattern: '*.md'
- name: create pull request
run: gh pr create -B "master" -H "nbconvert" --title 'Merge nbconvert into master' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update report
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: nbconvertt
delete-branch: true
title: '[Example] Update report'
body: |
Update report
- Updated with *today's* date
- Auto-generated by [create-pull-request][1]
labels: |
report
automated pr
assignees: memerchik
reviewers: memerchik
draft: false


- name: Run shell cmd
run: echo "Preflight check on https://github.com/${{github.repository}}/blob/${{github.ref_name}}/${{steps.preflight.outputs.notebook}}"

0 comments on commit 6b3b9da

Please sign in to comment.