Files
php-curl-class/.github/workflows/release.yml
T
Zach Borboa ffc0a3e798 Use a more friendly release time and day of week
"0 18 * * 1-4":
  "At 18:00 on every day-of-week from Monday through Thursday."

  PT  - 10 am
  CT  - 12 pm
  ET  -  1 pm
  UTC -  6 pm
2023-02-26 09:51:13 -08:00

34 lines
849 B
YAML

name: release
on:
schedule:
- cron: '0 18 * * 1-4'
workflow_dispatch:
jobs:
release:
# Prevent this workflow from running elsewhere.
if: github.repository_owner == 'php-curl-class'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install --requirement scripts/make_release_requirements.txt
- name: Set git details
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Make release
run: python scripts/make_release.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}