Skip to content

Promote

Promote #76

Workflow file for this run

name: Promote
on:
# Approximate "every 2 weeks" by doing 1st and 15th of the month.
schedule:
- cron: "0 07 01 * *"
- cron: "0 07 15 * *"
workflow_dispatch:
inputs:
from:
description: Tag to promote from
required: true
default: dev
to:
description: Tag to promote to
required: true
default: stable
jobs:
release:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
AWS_DEFAULT_REGION: us-east-1
steps:
- id: prep
run: |
cat >>"$GITHUB_OUTPUT" <<EOM
from=${{ github.event.from || 'dev' }}
to=${{ github.event.to || 'stable' }}
EOM
- uses: restyled-io/sdk@main
with:
command: >
promote --yes ${{ steps.prep.outputs.from }} ${{ steps.prep.outputs.to }}
- name: Notify
if: always()
uses: zulip/github-actions-zulip/send-message@v1.0.2
with:
api-key: ${{ secrets.ZULIP_API_KEY }}
email: ${{ secrets.ZULIP_EMAIL }}
organization-url: ${{ secrets.ZULIP_ORGANIZATION_URL }}
to: 'changelog'
type: 'stream'
topic: 'Restylers Releases'
content: |
Promotion of `${{ steps.prep.outputs.from }}` to `${{ steps.prep.outputs.to }}`: ${{ job.status }}