Skip to content

Commit

Permalink
Merge pull request #18 from signalsciences/lisa/fix-workflow-var
Browse files Browse the repository at this point in the history
Fixed branch error release workflow
  • Loading branch information
lsmith500 authored Jul 20, 2021
2 parents c096f0c + 0f6c26c commit bbf2221
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-and-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
outputs:
value: ${{ steps.tag.outputs.NO_CHANGE }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: compare versions
id: tag
env:
Expand Down Expand Up @@ -55,14 +55,14 @@ jobs:
- name: Update sigsci-values.yaml & create PR
if: ${{ steps.tag.outputs.NO_CHANGE == 'false' }}
run: |
sed -i "s/tag:.*/tag: ${{ env.NEW_TAG }}/g" sigsci-values.yaml
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -am "Automated PR - Match upstream version"
git push
git checkout -b match-version-release
sed -i "s/tag:.*/tag: ${{ env.NEW_TAG }}/g" sigsci-values.yaml
git commit -am "Automated PR - Match upstream version" && git push -u origin match-version-release
curl -X POST -u ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \
${{ env.GH_REPO }}/pulls --data '{"head":"${{ github.ref }}","base":"main","body":"Automated PR","title":"Match Version ${{ env.NEW_TAG}}"}'
${{ env.GH_REPO }}/pulls --data '{"head":"match-version-release","base":"main","body":"Automated PR","title":"Match Version ${{ env.NEW_TAG}}"}'
- name: Pull latest PR Num
if: ${{ steps.tag.outputs.NO_CHANGE == 'false' }}
Expand Down

0 comments on commit bbf2221

Please sign in to comment.