Skip to content

.github/workflows/update_staging.yml #85

.github/workflows/update_staging.yml

.github/workflows/update_staging.yml #85

Workflow file for this run

# update staging on push to main

Check failure on line 1 in .github/workflows/update_staging.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update_staging.yml

Invalid workflow file

(Line: 25, Col: 21): Unrecognized named-value: 'github'. Located at position 1 within expression: github.ref_name
name: update_staging
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ secrets.PROSOPONATOR_PAT }}
GH_TOKEN: ${{ secrets.PROSOPONATOR_PAT }}
CARGO_TERM_COLOR: always
NODE_OPTIONS: "--max-old-space-size=4096"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup
uses: ./.github/setup@${{ github.ref_name }}
- name: PR main into staging
run: |
set -euo pipefail # stop on errors, print commands, fail on pipe fails
# set the author in git
git config user.name "prosoponator[bot]"
git config user.email "dev@prosopo.io"
# checkout the src branch
git fetch --all
git checkout main
# create a PR for the release
gh pr create --base staging --title "Bring staging up to date with main" --fill