403Webshell
Server IP : 103.175.220.74  /  Your IP : 216.73.216.151
Web Server : nginx/1.18.0
System : Linux p-floo-wj1-db 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : deploy ( 1003)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/deploy/.pyenv/.github/workflows/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/deploy/.pyenv/.github/workflows/add_version.yml
name: Add versions

on:
  workflow_dispatch: {}
  schedule:
    # Every N hours
    - cron: '0 */4 * * *'

permissions:
  contents: write
  pull-requests: write

jobs:
  add_cpython:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-python@v6
        with:
          python-version: 3
          cache: 'pip'
          cache-dependency-path: plugins/python-build/scripts/requirements.txt
      - run: pip install -r plugins/python-build/scripts/requirements.txt

      - name: check for a release
        run: |
          python plugins/python-build/scripts/add_cpython.py --verbose >added_versions.lst && rc=$? || rc=$?
          echo "rc=$rc" >> $GITHUB_ENV
      - name: set PR properties
        if: env.rc == 0
        shell: python
        run: |
          import os
          import sys
          versions=[l.rstrip() for l in open("added_versions.lst")]
          with open(os.environ['GITHUB_ENV'],'a') as f:
            f.write(f'branch_name=auto_add_version/{"_".join(versions)}\n')
            f.write(f'pr_name=Add CPython {", ".join(versions)}\n')
          os.remove("added_versions.lst")

      # https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#authenticating-with-github-app-generated-tokens
      - name: Generate Github token
        if: env.rc == 0
        uses: actions/create-github-app-token@v2
        id: generate-token
        with:
          app-id: ${{ vars.PYENV_BOT_APP_ID }}
          private-key: ${{ secrets.PYENV_BOT_PRIVATE_KEY }}
      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v8
        if: env.rc == 0
        with:
          branch: ${{ env.branch_name }}
          title: ${{ env.pr_name }}
          token: ${{ steps.generate-token.outputs.token }}

Youez - 2016 - github.com/yon3zu
LinuXploit