You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This docker image is built and published by the qualcomm-linux/docker-pkg-build repo CI workflow
58
+
image: ghcr.io/qualcomm-linux/pkg-builder:noble
55
59
credentials:
56
-
username: ${{ vars.DEB_PKG_BOT_CI_USERNAME }}
57
-
password: ${{ secrets.DEB_PKG_BOT_CI_TOKEN }}
60
+
username: ${{ github.actor }}
61
+
password: ${{ secrets.GITHUB_TOKEN }}
58
62
59
63
steps:
60
64
@@ -69,11 +73,10 @@ jobs:
69
73
echo "ℹ️ Normalized version : $NORMALIZED_VERSION"
70
74
71
75
- name: Checkout qcom-build-utils
72
-
uses: actions/checkout@v4
76
+
uses: actions/checkout@v5
73
77
with:
74
78
repository: qualcomm-linux/qcom-build-utils
75
79
ref: ${{inputs.qcom-build-utils-ref}}
76
-
#token: Not needed for public repo
77
80
path: ./qcom-build-utils
78
81
fetch-depth: 1
79
82
sparse-checkout: |
@@ -82,16 +85,19 @@ jobs:
82
85
83
86
# Fetch all history for all tags and branches
84
87
- name: Checkout Repository
85
-
uses: actions/checkout@v4
88
+
uses: actions/checkout@v5
86
89
with:
87
-
token: ${{secrets.DEB_PKG_BOT_CI_TOKEN}}
90
+
token: ${{secrets.PAT}}
88
91
path: ./package-repo
89
92
fetch-depth: 0
90
93
94
+
- name: Authenticate with GitHub
95
+
run : |
96
+
gh auth login --with-token <<< "${{secrets.PAT}}"
97
+
91
98
- name: Show branches/tags and checkout debian/upstream latest
99
+
working-directory: ./package-repo
92
100
run: |
93
-
cd ./package-repo
94
-
95
101
git branch
96
102
git tag
97
103
git checkout ${{inputs.debian-branch}}
@@ -102,20 +108,17 @@ jobs:
102
108
git checkout - # Then revert back to the inputs.debian-branch branch as we will need to have it checked out for gbp later
103
109
fi
104
110
105
-
106
111
- name: Make sure the upstream tag is not already part of the repo
112
+
working-directory: ./package-repo
107
113
run: |
108
-
cd ./package-repo
109
-
110
114
if (git tag --list | grep "${{inputs.upstream-tag}}"); then
111
115
echo "❌ The supplied upstream tag is wrong as it pertains to this repo already."
112
116
exit 1
113
117
fi
114
118
115
119
- name: Validate the upstream tag promotion state
120
+
working-directory: ./package-repo
116
121
run: |
117
-
cd ./package-repo
118
-
119
122
# Check if the upstream/<normalized_version> tag does not already exists
120
123
if ! git tag --list | grep "upstream/${{env.NORMALIZED_VERSION}}"; then
121
124
echo "✅ The upstream tag '${{inputs.upstream-tag}}' has not been promoted yet. Continuing."
@@ -138,7 +141,6 @@ jobs:
138
141
echo "ℹ️ This is likely a second attempt to promote the same upstream tag, where the first attempt already added the upstream tag in the upstram branch"
echo "ℹ️ Adding upstream remote with token authentication. This is because the upstream repository may be private and require authentication to fetch tags."
Copy file name to clipboardExpand all lines: .github/workflows/qcom-release-reusable-workflow.yml
+15-10Lines changed: 15 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,14 @@ on:
30
30
type: boolean
31
31
default: true
32
32
33
+
secrets:
34
+
PAT:
35
+
description: Personal Access Token with repo and package permissions to the packaging repository. This is needed to push the changelog commit and tag to the packaging repository.
36
+
required: false
37
+
33
38
permissions:
34
39
contents: read
40
+
packages: read
35
41
36
42
jobs:
37
43
pkg-release:
@@ -47,16 +53,16 @@ jobs:
47
53
48
54
container:
49
55
# This docker image is built and published by the qualcomm-linux/docker_deb_build repo CI workflow
0 commit comments