Granting bot permission to write. #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Auto-tar | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Archive using zip or tar | |
uses: NSCoder/[email protected] | |
- name: Tarball | |
run: tar -czvf double_seals.tar.gz ./mods | |
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version. | |
with: | |
default_author: github_actions | |
message: 'Commit via GitHub Actions auto-tar.' | |
pathspec_error_handling: exitImmediately |