Skip to content

Generate Output

Generate Output #1576

---
# 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 }}"