Skip to content

Commit

Permalink
Fixes #58
Browse files Browse the repository at this point in the history
Seems like the default configuration provided by s4u/maven-settings-action doesn't totally works, in a weird non-deterministic way.
  • Loading branch information
Riduidel authored Aug 28, 2024
1 parent 48500b8 commit 556709f
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 17 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/get_mvnrepository_infos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:

jobs:
read_mvn_repository:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -39,7 +38,23 @@ jobs:
uses: s4u/maven-settings-action@v3.0.0
with:
override: true
githubServer: true
githubServer: false
servers: |
[
{
"id": "github",
"username": "${{ env.GITHUB_ACTOR }}",
"password": "Bearer ${{ secrets.GITHUB_TOKEN }}",
"configuration": {
"httpHeaders": {
"property": {
"name": "Authorization",
"value": "Bearer ${{ secrets.GITHUB_TOKEN }}"
}
}
}
}
]
repositories: |
[
{
Expand Down Expand Up @@ -90,14 +105,14 @@ jobs:
env:
VERSION: "${{steps.version.outputs.release}}"

# - name: Deploy
# uses: s0/git-publish-subdir-action@develop
# env:
# REPO: self
# BRANCH: reports_mvnrepository
# FOLDER: target
# TARGET_DIR: mvnrepository
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# MESSAGE: Updated mvnrepository infos
# COMMIT-NAME: 🤖 GitHub Action
# COMMIT_EMAIL: get_mvnrepository_infos.yaml@github.actions
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: reports_mvnrepository
FOLDER: target
TARGET_DIR: mvnrepository
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: Updated mvnrepository infos
COMMIT-NAME: 🤖 GitHub Action
COMMIT_EMAIL: get_mvnrepository_infos.yaml@github.actions
19 changes: 17 additions & 2 deletions .github/workflows/get_npmjs_infos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:

jobs:
read_npmjs:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -39,7 +38,23 @@ jobs:
uses: s4u/maven-settings-action@v3.0.0
with:
override: true
githubServer: true
githubServer: false
servers: |
[
{
"id": "github",
"username": "${{ env.GITHUB_ACTOR }}",
"password": "Bearer ${{ secrets.GITHUB_TOKEN }}",
"configuration": {
"httpHeaders": {
"property": {
"name": "Authorization",
"value": "Bearer ${{ secrets.GITHUB_TOKEN }}"
}
}
}
}
]
repositories: |
[
{
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/get_pypi_infos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:

jobs:
read_pypi:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -39,7 +38,23 @@ jobs:
uses: s4u/maven-settings-action@v3.0.0
with:
override: true
githubServer: true
githubServer: false
servers: |
[
{
"id": "github",
"username": "${{ env.GITHUB_ACTOR }}",
"password": "Bearer ${{ secrets.GITHUB_TOKEN }}",
"configuration": {
"httpHeaders": {
"property": {
"name": "Authorization",
"value": "Bearer ${{ secrets.GITHUB_TOKEN }}"
}
}
}
}
]
repositories: |
[
{
Expand Down

0 comments on commit 556709f

Please sign in to comment.