Add output file of the complexity score #17
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 is a basic workflow to save a file in my repo from a runner | |
name: Push File to Repository | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_TOKEN }} # Using the secret token | |
- name: Create a file | |
run: echo "This is a test file" > testfile.txt | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add testfile.txt | |
git commit -m "Add test file" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # Using the secret token |