Skip to content

Commit 10095a7

Browse files
committed
private repo
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent 32d2118 commit 10095a7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/upgrade-provider.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ env:
1414
GH_TOKEN: ${{ secrets.PR_TOKEN }}
1515
GO_VERSION: "1.24"
1616
DOTNET_VERSION: 9.0.x
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1817
NODE_VERSION: 20.x
1918
PYTHON_VERSION: "3.9"
2019

@@ -26,6 +25,14 @@ jobs:
2625
steps:
2726
- name: Checkout
2827
uses: actions/checkout@v6
28+
# TODO: remove when this repo is made public
29+
- name: Configure Git for Private Modules
30+
run: |
31+
git config --global url."https://oauth2:${{ secrets.PR_TOKEN }}@github.com".insteadOf "https://github.com"
32+
# Sets GOPRIVATE and GONOSUMDB in order to use the git authetnication for go mod.
33+
echo "GOPRIVATE=github.com/${{ github.repository }}/*,github.com/stackitcloud/*" >> $GITHUB_ENV
34+
echo "GONOSUMDB=github.com/${{ github.repository }}/*,github.com/stackitcloud/*" >> $GITHUB_ENV
35+
# TODO: remove end
2936
- name: Install pulumictl
3037
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # tag=v2.1.0
3138
with:
@@ -48,14 +55,6 @@ jobs:
4855
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # tag=v6.0.0
4956
with:
5057
python-version: ${{ env.PYTHON_VERSION }}
51-
# TODO: remove when this repo is made public
52-
- name: Configure Git for Private Modules
53-
run: |
54-
git config --global url."https://oauth2:${{ secrets.PR_TOKEN }}@github.com".insteadOf "https://github.com"
55-
# Sets GOPRIVATE and GONOSUMDB in order to use the git authetnication for go mod.
56-
echo "GOPRIVATE=github.com/${{ github.repository }}/*,github.com/stackitcloud/*" >> $GITHUB_ENV
57-
echo "GONOSUMDB=github.com/${{ github.repository }}/*,github.com/stackitcloud/*" >> $GITHUB_ENV
58-
# TODO: remove end
5958
- name: Test update provider and bridge and create a PR
6059
run: |
6160
LATEST_TAG=$(git ls-remote --tags https://github.com/stackitcloud/terraform-provider-stackit | grep -oP 'refs/tags/v\d+\.\d+\.\d+$' |sed 's/refs\/tags\///' | sort -V | tail -n 1)

0 commit comments

Comments
 (0)