Skip to content

delete junk

delete junk #24

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: On Commit
permissions:
contents: write
env:
BUILD_REPO: chaotic-aur
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: GitLab CI
REDIS_SSH_HOST: builds.garudalinux.org
REDIS_SSH_PORT: 400
REDIS_SSH_USER: package-deployer
REPO_NAME: chaotic-aur
# Controls when the workflow will run
on:
push:
branches: [ "main" ]
concurrency:
group: chaotic
cancel-in-progress: false
jobs:
parse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Execute on-commit tasks...
id: parse
run: |
.ci/on-commit.sh
if [ -f .ci/schedule-params.txt ]; then
params=$(cat .ci/schedule-params.txt)
echo "SCHEDULE_PARAMS=$params" >> "$GITHUB_OUTPUT"
fi
outputs:
SCHEDULE_PARAMS: ${{ steps.parse.outputs.SCHEDULE_PARAMS }}
schedule:
runs-on: ubuntu-latest
needs: parse
container:
image: registry.gitlab.com/garuda-linux/tools/chaotic-manager/manager
steps:
- name: Schedule jobs
run: |
[[ -z ${DEPLOY_KEY+x} ]] && echo "No deploy key available, backing off!" && exit 1
echo "$DEPLOY_KEY" >/app/sshkey
chmod 400 /app/sshkey
/entry_point.sh $SCHEDULE_PARAMS
env:
SCHEDULE_PARAMS: ${{ needs.parse.outputs.SCHEDULE_PARAMS }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
if: ${{ needs.parse.outputs.SCHEDULE_PARAMS != '' }}