Skip to content

Commit

Permalink
change commit actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gutenfries committed Aug 3, 2023
1 parent 80d3fb0 commit 4184ca7
Showing 1 changed file with 79 additions and 66 deletions.
145 changes: 79 additions & 66 deletions .github/workflows/update_msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
steps:
# checkout sources
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

# ensure rustup is installed
- uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -73,71 +71,86 @@ jobs:
# Commit changes from these files:
# README.md, .github/workflows/ci.yml, .stable_msrv,.nightly_msrv, clippy.toml
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: EndBug/add-and-commit@v9
with:
# Optional. Commit message for the created commit.
# Defaults to "Apply automatic changes"
commit_message: Update MSRV for toolchain ${{ matrix.toolchain }} (`${{ env.OLD_MSRV }}` -> `${{ env.NEW_MSRV }}`)

# # Optional. Create given branch name in local and remote repository.
# create_branch: true

# # Optional. Local and remote branch name where commit is going to be pushed to.
# # Defaults to the current branch.
# branch: new-feat

# Optional. Options used by `git-commit`.
# See https://git-scm.com/docs/git-commit#_options
commit_options: "--no-verify --signoff"

# Optional glob pattern of files which should be added to the commit.
# Defaults to all (.)
#
### We only want to track the following files:
###
### .github/workflows/ci.yml
### clippy.toml
### README.md
### .nightly_msrv
### .stable_msrv
file_pattern: 'README.md .github/workflows/ci.yml .stable_msrv .nightly_msrv clippy.toml'

# # Optional. Local file path to the repository. Defaults to the root of the repository.
# repository: .

# # Optional commit user and author settings
# commit_user_name: My GitHub Actions Bot # defaults to "github-actions[bot]"
# commit_user_email: [email protected] # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
# commit_author: Author <[email protected]> # defaults to author of the commit that triggered the run

# # Optional. Tag name being created in the local repository and
# # pushed to remote repository and defined branch.
# tagging_message: 'v1.0.0'

# # Optional. Options used by `git-add`.
# # See https://git-scm.com/docs/git-add#_options
# add_options: '-u'

# # Optional. Options used by `git-push`.
# # See https://git-scm.com/docs/git-push#_options
# push_options: '--force'

# Optional. Disable dirty check and always try to create a commit and push
skip_dirty_check: true

# # Optional. Option used by `git-status` to determine if the repository is
# # dirty. See https://git-scm.com/docs/git-status#_options
# status_options: '--untracked-files=no'

# Optional. Skip internal call to `git fetch`
skip_fetch: true

# Optional. Skip internal call to `git checkout`
skip_checkout: false

# Optional. Prevents the shell from expanding filenames.
# Details: https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html
disable_globbing: true
default_author: github_actions
message: Update MSRV for toolchain ${{ matrix.toolchain }} (`${{ env.OLD_MSRV }}` -> `${{ env.NEW_MSRV }}`)
add: |
README.md
.github/workflows/ci.yml
.stable_msrv
.nightly_msrv
clippy.toml
##- name: Commit changes
## uses: stefanzweifel/git-auto-commit-action@v4
## with:
## # Optional. Commit message for the created commit.
## # Defaults to "Apply automatic changes"
## commit_message: Update MSRV for toolchain ${{ matrix.toolchain }} (`${{ env.OLD_MSRV }}` -> `${{ env.NEW_MSRV }}`)

## # # Optional. Create given branch name in local and remote repository.
## # create_branch: true

## # # Optional. Local and remote branch name where commit is going to be pushed to.
## # # Defaults to the current branch.
## # branch: new-feat

## # Optional. Options used by `git-commit`.
## # See https://git-scm.com/docs/git-commit#_options
## commit_options: "--no-verify --signoff"

## # Optional glob pattern of files which should be added to the commit.
## # Defaults to all (.)
## #
## ### We only want to track the following files:
## ###
## ### .github/workflows/ci.yml
## ### clippy.toml
## ### README.md
## ### .nightly_msrv
## ### .stable_msrv

## file_pattern: 'README.md .github/workflows/ci.yml .stable_msrv .nightly_msrv clippy.toml'

## # # Optional. Local file path to the repository. Defaults to the root of the repository.
## # repository: .

## # # Optional commit user and author settings
## # commit_user_name: My GitHub Actions Bot # defaults to "github-actions[bot]"
## # commit_user_email: [email protected] # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
## # commit_author: Author <[email protected]> # defaults to author of the commit that triggered the run

## # # Optional. Tag name being created in the local repository and
## # # pushed to remote repository and defined branch.
## # tagging_message: 'v1.0.0'

## # # Optional. Options used by `git-add`.
## # # See https://git-scm.com/docs/git-add#_options
## # add_options: '-u'

## # # Optional. Options used by `git-push`.
## # # See https://git-scm.com/docs/git-push#_options
## # push_options: '--force'

## # Optional. Disable dirty check and always try to create a commit and push
## skip_dirty_check: true

## # # Optional. Option used by `git-status` to determine if the repository is
## # # dirty. See https://git-scm.com/docs/git-status#_options
## # status_options: '--untracked-files=no'

## # Optional. Skip internal call to `git fetch`
## skip_fetch: true

## # Optional. Skip internal call to `git checkout`
## skip_checkout: false

## # Optional. Prevents the shell from expanding filenames.
## # Details: https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html
## disable_globbing: true

# # open a PR if the MSRV has changed
# - name: Create Pull Request
Expand Down

0 comments on commit 4184ca7

Please sign in to comment.