Skip to content

Commit

Permalink
fix: Authenticate in Github CLI before release Flank-Scripts (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotradamczyk5 authored Feb 22, 2021
1 parent 5a49af5 commit e7cc48c
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/create_new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
app_id: ${{ secrets.FLANK_RELEASE_APP_ID }}
private_key: ${{ secrets.FLANK_RELEASE_PRIVATE_KEY }}

- name: Download flankScripts and add it to PATH
- name: Download flankScripts and add it to PATH.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew :flank-scripts:download
echo "./flank-scripts/bash" >> $GITHUB_PATH
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/full_suite_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Download flankScripts and add it to PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew :flank-scripts:download
echo "./flank-scripts/bash" >> $GITHUB_PATH
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Download flankScripts and add it to PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew :flank-scripts:download
echo "./flank-scripts/bash" >> $GITHUB_PATH
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
git tag
- name: Download flankScripts and add it to PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew :flank-scripts:download
echo "./flank-scripts/bash" >> $GITHUB_PATH
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release_flank_scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:

- uses: gradle/wrapper-validation-action@v1

- name: Authenticate in GitHub CLI
run: gh auth login --with-token < ${{ secrets.GITHUB_TOKEN }}

- name: Gradle Upload to Github packages and Github release
uses: eskatos/gradle-command-action@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release_notes_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
arguments: "test_runner:processCliAsciiDoc"

- name: Download flankScripts and add it to PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew :flank-scripts:download
echo "./flank-scripts/bash" >> $GITHUB_PATH
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/update_dependencies_and_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
arguments: dependencyUpdates -DoutputFormatter=json -DoutputDir=.

- name: Download flankScripts and add it to PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew :flank-scripts:download
echo "./flank-scripts/bash" >> $GITHUB_PATH
Expand Down Expand Up @@ -75,6 +77,8 @@ jobs:
python-version: '2.x'

- name: Download flankScripts and add it to PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew :flank-scripts:download
echo "./flank-scripts/bash" >> $GITHUB_PATH
Expand Down Expand Up @@ -106,6 +110,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Download flankScripts and add it to PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew :flank-scripts:download
echo "./flank-scripts/bash" >> $GITHUB_PATH
Expand Down
2 changes: 1 addition & 1 deletion flank-scripts/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ shadowJar.apply {
}
}
// <breaking change>.<feature added>.<fix/minor change>
version = "1.6.5"
version = "1.6.6"
group = "com.github.flank"

application {
Expand Down

0 comments on commit e7cc48c

Please sign in to comment.