Generate Output #1572
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 generates the output and pushes it to main branch | |
name: Generate Output | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup SteamCMD | |
uses: CyberAndrii/setup-steamcmd@v1.2.0 | |
- name: Run steamcmd_commands.sh | |
run: ./steamcmd_commands.sh | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Push to main branch | |
uses: Automattic/action-commit-to-branch@master | |
with: | |
branch: "main" | |
commit_message: "GitHub Actions build: ${{ steps.date.outputs.date }}" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |