add a debug output to print out the acess token #13
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
name: SCALA_CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'sbt' | |
- name: Run tests | |
run: sbt test | |
- name: Debug Output | |
run: | | |
echo "Access Token: ${{ secrets.SCALA_CI }}" | |
git config --list | |
git remote -v | |
- name: Push to GitHub with Access Token | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "paulmunyao" | |
git remote set-url origin https://github.com/paulmunyao/Knight-s-Tour.git | |
git push origin master | |
env: | |
ACCESS_TOKEN: ${{ secrets.SCALA_CI }} | |