Skip to content

Commit

Permalink
cleanup: Include Workflow Dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits committed Apr 27, 2024
1 parent 1fa3384 commit 501711f
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/weekly-release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
name: Weekly Release

on:
workflow_dispatch:
schedule:
- cron: "0 16 * * 6"
- cron: '0 16 * * 6'

jobs:
release:
runs-on: ubuntu-latest
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: latest

- name: Remove version suffix
run: sed -i 's/-[0-9]*$//' package.json
- name: Remove version suffix
run: sed -i 's/-[0-9]*$//' package.json

- name: Update CHANGELOG.md
run: |
today=$(date +'%Y-%m-%d')
sed -i "s/unreleased/$today/" CHANGELOG.md
- name: Update CHANGELOG.md
run: |
today=$(date +'%Y-%m-%d')
sed -i "s/unreleased/$today/" CHANGELOG.md
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add .
git commit -am "release: $(jq -r '.version' package.json)"
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add .
git commit -am "release: $(jq -r '.version' package.json)"

0 comments on commit 501711f

Please sign in to comment.