First commit pipeline_codellama.yaml #52
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 GitHub Action workflow runs when a new repository is created from this | |
# template repo. | |
name: Initial Setup | |
on: | |
push: | |
branches: | |
- main | |
env: | |
REPO_NAME: ${{ github.event.repository.name }} | |
jobs: | |
initial_setup: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.created }} | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository | |
contents: write | |
steps: | |
# GitHub Action marketplace: https://github.com/marketplace/actions/checkout | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# GitHub Action marketplace: https://github.com/marketplace/actions/find-and-replace | |
- name: Replace token with repository name | |
uses: jacobtomlinson/gha-find-replace@v2 | |
with: | |
find: "<GITHUB_REPOSITORY>" | |
replace: ${{ env.REPO_NAME }} | |
exclude: "{.git,.github}/**" | |
- name: Rename source code directory to repository name | |
run: mv ml-template $REPO_NAME | |
# GitHub Action marketplace: https://github.com/marketplace/actions/git-auto-commit | |
- name: Commit all changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Initial repo setup | |
commit_options: "--no-verify --signoff" |