Skip to content

Mention issue fixes #182

Mention issue fixes

Mention issue fixes #182

Workflow file for this run

name: ROBLOX 2016 dev workflow
on:
push:
paths:
- stylustheme.css
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main
- name: Set Date Variables
id: set-date
run: |
echo "CUR_DATE=$(date +%m-%d-%Y)" >> $GITHUB_ENV
echo "CURV_DATE=$(date +%m.%d.%Y)" >> $GITHUB_ENV
echo "UNIX_TIME=$(date +%s)" >> $GITHUB_ENV
- name: Add header to stylustheme.css
run: |
echo "/* ==UserStyle==
@name ROBLOX 2016 dev${{ env.CUR_DATE }}
@namespace Userstyle
@author anthony1x6000
@description Userstyle that changes the look of ROBLOX to be more faithful to what it would look like in 2016.
@version ${{ env.CURV_DATE }}.${{ env.UNIX_TIME }}
@license MIT License
@var select profileVis 'Hide profile in nav bar?' ['block:Visible', 'none:Hidden']
@var select displayRecommended 'Display Recommended Games at home?' ['block:Visible', 'none:Hidden']
@var select creditVis 'Hide credit on nav bar?' ['block:Visible', 'none:Hidden']
@var select iconPadding 'Use 2016 icon padding?' ['0:No', '9px 6px 6px 6px']
==/UserStyle== */" > header.txt
cat header.txt stylustheme.css > roblox2016-pre${{ env.CUR_DATE }}.user.css
- name: Set user identity
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Commit changes to main branch
run: |
cp roblox2016-pre${{ env.CUR_DATE }}.user.css roblox2016-preLatest.user.css
mv roblox2016-pre${{ env.CUR_DATE }}.user.css roblox2016-preLatest.user.css devDownloads/
git add devDownloads
git commit -m "${{ env.CUR_DATE }}-${{ env.UNIX_TIME }} dev"
- name: Pull and Rebase origin/dev
run: |
git pull origin main --rebase
- name: Push to GitHub
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
force: true
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: roblox2016-${{ env.CUR_DATE }}.user.css
path: devDownloads/roblox2016-pre${{ env.CUR_DATE }}.user.css