Skip to content

Fixes to drainpipe-dev deployments #167

Fixes to drainpipe-dev deployments

Fixes to drainpipe-dev deployments #167

Workflow file for this run

name: Push Drainpipe Dev Package
on:
pull_request:
push:
branches:
- main
tags:
- 'v*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.sha }}
cancel-in-progress: false
permissions:
contents: read
jobs:
Drainpipe-Dev:
name: Push branch to drainpipe-dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Add drainpipe-dev deploy key in order to run git clone
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DRAINPIPE_DEV_DEPLOY_KEY }}
log-public-key: false
# @todo This step might need to be re-worked to checkout to a different directory and copy the contents over instead of doing a reset. Not sure that will work with deleted files.
- name: Create git checkout of drainpipe-dev
working-directory: drainpipe-dev
run: |
git init
git remote add origin [email protected]:Lullabot/drainpipe-dev.git
git fetch origin
git reset --mixed origin/main
git config user.email "[email protected]"
git config user.name "Drainpipe Bot"
- name: Test push branch to drainpipe-dev
if: ${{ github.event_name === 'pull_request' }}

Check failure on line 43 in .github/workflows/DrainpipeDev.yml

View workflow run for this annotation

GitHub Actions / Push Drainpipe Dev Package

Invalid workflow file

The workflow is not valid. .github/workflows/DrainpipeDev.yml (Line: 43, Col: 13): Unexpected symbol: '='. Located at position 21 within expression: github.event_name === 'pull_request'
working-directory: drainpipe-dev
run: |
git add -A
git commit -m "${{ github.event.head_commit.message }}" --allow-empty
git push origin ${{ github.head_ref }}
- name: Push branch to drainpipe-dev
if: ${{ startsWith(github.ref, 'refs/heads/') }}
working-directory: drainpipe-dev
run: |
git add -A
git commit -m "${{ github.event.head_commit.message }}" --allow-empty
git push origin ${{ github.ref_name }}
- name: Push tag to drainpipe-dev
if: ${{ startsWith(github.ref, 'refs/tags/') }}
working-directory: drainpipe-dev
run: |
git tag ${{ github.ref_name }}
git push origin ${{ github.ref_name }}