Skip to content

Commit 9b7c879

Browse files
committed
fixing issues :D
1 parent 25bf74b commit 9b7c879

1 file changed

Lines changed: 23 additions & 22 deletions

File tree

.github/workflows/publish.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
Invoke-Pester -Path ./PsGraph.Pester.Tests/
9696
9797
- name: psgallery publish
98+
shell: pwsh
9899
run: |
99100
Publish-Module -Path "./PSQuickGraph" -NuGetApiKey ${{ secrets.PS_GALLERY_SECRET }}
100101
@@ -129,25 +130,25 @@ jobs:
129130
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
130131

131132
# --- Commit manifest changes ---
132-
- name: Commit and push updated manifest
133-
if: success()
134-
env:
135-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136-
run: |
137-
git config user.name "github-actions[bot]"
138-
git config user.email "github-actions[bot]@users.noreply.github.com"
139-
SOURCE_BRANCH="${{ github.event.release.target_commitish }}"
140-
if [ -z "$SOURCE_BRANCH" ]; then
141-
echo "Could not determine source branch. Exiting."
142-
exit 1
143-
fi
144-
if [[ "$SOURCE_BRANCH" =~ ^[0-9a-f]{40}$ ]]; then
145-
echo "Commitish is a SHA, not a branch name. Aborting."
146-
exit 1
147-
fi
148-
git fetch origin "$SOURCE_BRANCH"
149-
git switch "$SOURCE_BRANCH"
150-
git pull origin "$SOURCE_BRANCH"
151-
git add ./PSQuickGraph/*.psd1
152-
git commit -m "ci: update module version to ${{ steps.set_version.outputs.version }}" || echo "Nothing to commit"
153-
git push origin "$SOURCE_BRANCH"
133+
# - name: Commit and push updated manifest
134+
# if: success()
135+
# env:
136+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137+
# run: |
138+
# git config user.name "github-actions[bot]"
139+
# git config user.email "github-actions[bot]@users.noreply.github.com"
140+
# SOURCE_BRANCH="${{ github.event.release.target_commitish }}"
141+
# if [ -z "$SOURCE_BRANCH" ]; then
142+
# echo "Could not determine source branch. Exiting."
143+
# exit 1
144+
# fi
145+
# if [[ "$SOURCE_BRANCH" =~ ^[0-9a-f]{40}$ ]]; then
146+
# echo "Commitish is a SHA, not a branch name. Aborting."
147+
# exit 1
148+
# fi
149+
# git fetch origin "$SOURCE_BRANCH"
150+
# git switch "$SOURCE_BRANCH"
151+
# git pull origin "$SOURCE_BRANCH"
152+
# git add ./PSQuickGraph/*.psd1
153+
# git commit -m "ci: update module version to ${{ steps.set_version.outputs.version }}" || echo "Nothing to commit"
154+
# git push origin "$SOURCE_BRANCH"

0 commit comments

Comments
 (0)