Skip to content

Update production files #4774

Update production files

Update production files #4774

Workflow file for this run

{
"name": "Update production files",
"on": {
"schedule": [{"cron": "14 */6 * * *"}],
"push": {
"branches": ["master"],
"paths": [".github/workflows/update.yml"],
},
"workflow_dispatch": {},
},
"jobs": {
"update": {
"name": "Build and update",
"timeout-minutes": 5,
"runs-on": "ubuntu-latest",
"steps": [
{
"name": "Print environment",
"run": "printenv && pwd",
},
{
"name": "Print Go environment",
"run": "go version && go env",
},
{
"name": "Checkout executable repository",
"uses": "actions/checkout@v2",
"with": {
"repository": "RobloxAPI/build-archive",
"fetch-depth": 1,
"ref": "master",
},
},
{
"name": "Generate module",
"run": "
go mod tidy -v
",
},
{
"name": "Get dependencies",
"run": "
go get -v -d ./...
",
},
{
"name": "Compile executable",
"run": "
cd tools/update &&
go build -v .
",
},
{
"name": "Run updater",
"run": "
cd tools/update &&
./update -config config.json
",
},
{
"name": "Commit and push",
"env": {
"ACCESS_TOKEN": "${{ secrets.ACCESS_TOKEN }}",
},
"run": "
git config user.email 'updater@build-archive' &&
git config user.name 'Updater' &&
git remote set-url origin https://$GITHUB_ACTOR:$ACCESS_TOKEN@github.com/$GITHUB_REPOSITORY.git &&
git add data/production &&
git commit -m 'Update production files.' &&
git push origin master ||
true
",
},
],
},
},
}