Skip to content
Snippets Groups Projects
Verified Commit 49f9f1a1 authored by Griefed's avatar Griefed :joystick:
Browse files

ci: Add job to update sponsors and contributors

parent e0cffecf
No related branches found
No related tags found
1 merge request!578ci: Add job to update sponsors and contributors
Pipeline #8398 failed
name: Update README with blog posts and sponsors
on:
workflow_dispatch:
jobs:
blog:
runs-on: ubuntu-latest
name: Fetch and Generate Blog Posts
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add GitHub Sponsors to Readme
uses: JamesIves/github-sponsors-readme-action@v1.3.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-cool/contributor-helper@v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
update-files: 'README.md'
update-places: '<!-- contributors -->/<!-- contributors end-->'
repo: 'Griefed/ServerPackCreator'
show-total: false
style: 'base'
avatar-width: '70'
- name: Push
run: |
apt-get update && apt-get install git -y && \
git config user.name ${{ secrets.GIT_USER }} && \
git config user.email ${{ secrets.GIT_MAIL }} && \
git checkout -b master && \
pwd && ls -ahl && \
git add . && \
wait && \
git status && \
git commit -m 'Update fancy schmancy blog posts, sponsors and contribution graph' && \
git push "https://${{ secrets.GIT_USER }}:${{ secrets.GITLAB_TOKEN }}@${{ secrets.CI_SERVER_HOST }}/${{ secrets.GIT_USER }}/${{ secrets.GIT_USER }}.git" --all
...@@ -508,6 +508,31 @@ pages: ...@@ -508,6 +508,31 @@ pages:
- serverpackcreator-web-frontend/node - serverpackcreator-web-frontend/node
- serverpackcreator-web-frontend/dist - serverpackcreator-web-frontend/dist
Update README:on-schedule:
image: docker.griefed.dev/griefed/gitlab-ci-cd:2.2.19
only:
- schedules
before_script:
- |-
echo "#### Ensuring act-config ####"
echo "-P ubuntu-latest=catthehacker/ubuntu:act-latest" > ~/.actrc
echo "-P ubuntu-22.04=catthehacker/ubuntu:act-22.04" >> ~/.actrc
echo "-P ubuntu-20.04=catthehacker/ubuntu:act-20.04" >> ~/.actrc
echo "-P ubuntu-18.04=catthehacker/ubuntu:act-18.04" >> ~/.actrc
script:
- |-
echo "#### Updating Sponsors and Blog Posts and Contribution Graph ####"
act -v \
-s GITHUB_TOKEN=$GITHUB_TOKEN \
-s GIT_USER=$GIT_USER \
-s GIT_MAIL=$GIT_MAIL \
-s GITLAB_TOKEN=$GITLAB_TOKEN \
-s CI_SERVER_HOST=$CI_SERVER_HOST \
-W '.github/workflows/update_readme.yml'
after_script:
- |-
echo "Done."
release_job: release_job:
stage: Release stage: Release
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
......
<?xml version="1.0" encoding="UTF-8"?>
<Configuration monitorInterval="30">
<Properties>
<Property name="log-path">F:\GitLab\ServerPackCreator\logs</Property>
<Property name="archive">${log-path}/archive</Property>
<Property name="pattern">%d{ISO8601} %5p [%t] (%F:%L) - %m%n</Property>
<Property name="console-pattern">%style{%d{ISO8601}}{dim,white} %highlight{%5p} [%style{%t}{bright,blue}] %style{(%F:%L)}{bright,yellow} - %m%n</Property>
<Property name="log-level">INFO</Property>
<Property name="log-level-spc">DEBUG</Property>
<Property name="charset">UTF-8</Property>
</Properties>
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout>
<Pattern>
${console-pattern}
</Pattern>
</PatternLayout>
</Console>
<RollingFile name="ApplicationLogger" fileName="${log-path}/serverpackcreator.log" filePattern="${archive}/serverpackcreator.log.%i">
<PatternLayout>
<Charset>
${charset}
</Charset>
<Pattern>
${pattern}
</Pattern>
</PatternLayout>
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10 MB" />
</Policies>
<DefaultRolloverStrategy max="5" />
</RollingFile>
<RollingFile name="InstallerLogger" fileName="${log-path}/modloader_installer.log" filePattern="${archive}/modloader_installer.log.%i">
<PatternLayout>
<Charset>
${charset}
</Charset>
<Pattern>
${pattern}
</Pattern>
</PatternLayout>
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10 MB" />
</Policies>
<DefaultRolloverStrategy max="5" />
</RollingFile>
<RollingFile name="PluginsLogger" fileName="${log-path}/plugins.log" filePattern="${archive}/plugins.log.%i">
<PatternLayout>
<Charset>
${charset}
</Charset>
<Pattern>
${pattern}
</Pattern>
</PatternLayout>
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10 MB" />
</Policies>
<DefaultRolloverStrategy max="5" />
</RollingFile>
</Appenders>
<Loggers>
<Root level="ALL">
<AppenderRef ref="Console" level="${log-level}"/>
<AppenderRef ref="ApplicationLogger" level="${log-level}" />
</Root>
<Logger name="de.griefed.serverpackcreator" level="ALL" additivity="false">
<AppenderRef ref="Console" level="${log-level-spc}"/>
<AppenderRef ref="ApplicationLogger" level="${log-level-spc}" />
</Logger>
<Logger name="InstallerLogger" level="ALL" additivity="false">
<AppenderRef ref="InstallerLogger" level="${log-level-spc}" />
</Logger>
<Logger name="PluginsLogger" level="ALL" additivity="false">
<AppenderRef ref="PluginsLogger" level="${log-level-spc}" />
</Logger>
</Loggers>
</Configuration>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment