Skip to content

Attempt to fix permissioning issue #17

Attempt to fix permissioning issue

Attempt to fix permissioning issue #17

name: Release Workflow
on:
push:
branches:
- release/*
paths:
- '.github/**'
jobs:
merge_commit:
runs-on: ubuntu-latest
env:
RELEASE_BRANCH: release/1
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "DevOps ${{ github.workflow }}"
- name: Merge and push
env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
set -e -v
gitcommit=$(git rev-parse HEAD)
git checkout $RELEASE_BRANCH
git merge $gitcommit --no-ff
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/mbuchoff/automerge.git
git push origin