forked from products/SUSE_ALP_Standard
Using a token for cloning actions.
IMHO no the best approach, we should have a default setting in our runner. But it should work that way for now until we find a better way.
This commit is contained in:
parent
8682779228
commit
7937b4515c
@ -13,7 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# We should provide go with our image already?
|
# We should provide go with our image already?
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: https://src.suse.de/actions/github-setup-go@v5
|
uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/github-setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
# To be obsoleted
|
# To be obsoleted
|
||||||
@ -23,16 +23,16 @@ jobs:
|
|||||||
zypper in -y ca-certificates-suse ca-certificates-suse-ucs
|
zypper in -y ca-certificates-suse ca-certificates-suse-ucs
|
||||||
# Generic action from GitHub to clone the product git repo
|
# Generic action from GitHub to clone the product git repo
|
||||||
- name: Checkout product
|
- name: Checkout product
|
||||||
uses: https://src.suse.de/actions/github-actions-checkout@v4
|
uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/github-actions-checkout@v4
|
||||||
# Updating incident numbers
|
# Updating incident numbers
|
||||||
- name: Update all new _patchinfo files
|
- name: Update all new _patchinfo files
|
||||||
uses: https://src.suse.de/actions/patchinfo-numbering-action@v0
|
uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/patchinfo-numbering-action@v0
|
||||||
- name: Get last commit message
|
- name: Get last commit message
|
||||||
id: last-commit
|
id: last-commit
|
||||||
run: |
|
run: |
|
||||||
echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
|
echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
|
||||||
- name: Commit changes back
|
- name: Commit changes back
|
||||||
uses: https://src.suse.de/actions/stefanzweifel-git-auto-commit-action@v5
|
uses: https://token:${{ secrets.REPO_CLONE }}@src.suse.de/actions/stefanzweifel-git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_author: ${{ steps.last-commit.outputs.author }}
|
commit_author: ${{ steps.last-commit.outputs.author }}
|
||||||
commit_message: "Update incident numbers"
|
commit_message: "Update incident numbers"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user