Skip to content

Commit

Permalink
modified commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelton-gov committed Dec 6, 2023
1 parent 9881e4a commit 1aff3fe
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,28 +162,29 @@ jobs:
# Copy the zip file to the releases folder in github.workspace
cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/dfe-azurecostbackend-datasource
mkdir -p ${{ github.workspace }}/releases
mv -f ./${{ steps.metadata.outputs.archive }} ${{ github.workspace }}/releases/
mv -f ./${{ steps.metadata.outputs.archive-checksum }} ${{ github.workspace }}/releases/
cd ${{ github.workspace }}/releases/
ls
cp -f ./${{ steps.metadata.outputs.archive }} ${{ github.workspace }}/releases/
cp -f ./${{ steps.metadata.outputs.archive-checksum }} ${{ github.workspace }}/releases/
- name: Create and Push New Branch
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
version="${{ steps.metadata.outputs.plugin-version }}"
branch_name="auto-release-${version}"
git checkout -b "$branch_name"
git add ${{ github.workspace }}/releases/${{ steps.metadata.outputs.archive }}
git add ${{ github.workspace }}/releases/${{ steps.metadata.outputs.archive-checksum }}
git commit -m "Add plugin zip file - ${version}"
git push origin "$branch_name"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "Add plugin zip file"
branch: "auto-release-${{ steps.metadata.outputs.plugin-version }}"
base: main
# - name: Create and Push New Branch
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# version="${{ steps.metadata.outputs.plugin-version }}"
# branch_name="auto-release-${version}"
# git checkout -b "$branch_name"
# git add ${{ github.workspace }}/releases/${{ steps.metadata.outputs.archive }}
# git add ${{ github.workspace }}/releases/${{ steps.metadata.outputs.archive-checksum }}
# git commit -m "Add plugin zip file - ${version}"
# git push origin "$branch_name"

# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v3
# with:
# commit-message: "Add plugin zip file"
# branch: "auto-release-${{ steps.metadata.outputs.plugin-version }}"
# base: main

- name: Create Github release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 1aff3fe

Please sign in to comment.