Skip to content

Commit a987084

Browse files
committed
CI - only fetch refs/heads in find-branch step (release event)
1 parent 2df0ffc commit a987084

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ jobs:
2929
taggedbranch: ${{ steps.find-branch.outputs.taggedbranch }}
3030
steps:
3131
- uses: actions/checkout@v2
32-
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*
32+
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3333
- name: Find which branch the release tag points at
3434
id: find-branch
3535
if: github.event_name == 'release' && runner.os == 'Windows'
3636
shell: bash
3737
run: |
38+
git branch --list | cat
39+
git fetch --depth=1 origin +refs/heads/*:refs/heads/*
40+
git branch --list -v | cat
3841
set -x
3942
TAGGEDBRANCH=$(git for-each-ref --points-at=${{github.sha}} --format='%(refname:lstrip=2)' refs/heads/)
4043
echo ::set-output name=taggedbranch::$TAGGEDBRANCH

.github/workflows/prerelease.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ jobs:
2929
taggedbranch: ${{ steps.find-branch.outputs.taggedbranch }}
3030
steps:
3131
- uses: actions/checkout@v2
32-
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*
32+
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3333
- name: Find which branch the release tag points at
3434
id: find-branch
3535
if: github.event_name == 'release' && runner.os == 'Windows'
3636
shell: bash
3737
run: |
38+
git branch --list | cat
39+
git fetch --depth=1 origin +refs/heads/*:refs/heads/*
40+
git branch --list -v | cat
3841
set -x
3942
TAGGEDBRANCH=$(git for-each-ref --points-at=${{github.sha}} --format='%(refname:lstrip=2)' refs/heads/)
4043
echo ::set-output name=taggedbranch::$TAGGEDBRANCH

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 3.1.2022012605 (26-Jan-2022 pre-release)
1+
## 3.1.2022012606 (26-Jan-2022 pre-release)
22
* Update README.
33
* Automate pre-release publication to Marketplace.
44

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "servermanager",
33
"displayName": "InterSystems Server Manager",
4-
"version": "3.1.2022012605",
4+
"version": "3.1.2022012606",
55
"preview": true,
66
"publisher": "intersystems-community",
77
"description": "Define connections to InterSystems servers. Browse and manage those servers.",

0 commit comments

Comments
 (0)