sonicpi-maker #33106
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: sonicpi-maker | |
on: | |
push: | |
schedule: | |
- cron: "*/5 * * * *" | |
jobs: | |
job-with-ruby: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
checks: write | |
contents: write | |
deployments: write | |
issues: write | |
packages: write | |
pull-requests: write | |
repository-projects: write | |
security-events: write | |
statuses: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Move directory | |
run: cd /home/runner/work/LiveCodingPortfolio/LiveCodingPortfolio | |
- name: Update apt Package lists | |
run: sudo apt update -y | |
- name: Upgrade apt version | |
run: sudo apt upgrade -y | |
- name: Pre-install LFS | |
run: sudo apt-get install git-lfs | |
- name: Install LFS | |
run: git lfs install | |
- name: Confirm LFS version | |
run: git lfs --version | |
- name: Enable LFS | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
clean: false | |
- name: Reset commits | |
run: git reset --hard | |
- name: Register user email | |
run: git config --global user.email "[email protected]" | |
- name: Register user name | |
run: git config --global user.name "Uchida16104" | |
- name: Remove files | |
run: git rm index.rb | |
- name: Commit to remove files | |
run: git commit -m "Upload Zend framework 3 skeleton" -m "Use GitHub web GUI" | |
- name: Fetch to remove files | |
run: git fetch | |
- name: Merge to remove files | |
run: git merge | |
- name: Push to remove files | |
run: git push --force-with-lease origin master | |
- name: Initialize Git | |
run: git init | |
- name: Initialize loop | |
run: echo "loop do" >> index.rb | |
- name: Play one of defined octaves | |
run: echo " play "$((RANDOM%231+1)) >> index.rb | |
- name: Sleep time | |
run: echo " sleep 0"$(bc <<< "scale=3; $RANDOM/32767") >> index.rb | |
- name: End loop | |
run: echo "end" >> index.rb | |
- name: Register files | |
run: git add . | |
- name: Commit files | |
run: git commit -m "Upload Zend framework 3 skeleton" -m "Use GitHub web GUI" | |
- name: Update files | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
- name: Push files | |
run: git push --force-with-lease origin master |