Skip to content

Commit ffcfd4e

Browse files
committed
fix: gh auth step in workflows
Due to a change in the GitHub CLI gh version 2.0.0, where the --with-token flag no longer accepts an argument. Instead, it reads from standard input.
1 parent d82b796 commit ffcfd4e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/get-crowdin-contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
6060
- name: Create Pull Request
6161
run: |
62-
gh auth login --with-token ${{ secrets.GITHUB_TOKEN }}
62+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
6363
gh pr create --base dev --head "automated-update-${{ env.TIMESTAMP }}" --title "Update translation contributors from Crowdin - ${{ env.READABLE_DATE }}" --body-file pr_body.txt

.github/workflows/get-translation-progress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ jobs:
6060
6161
- name: Create Pull Request
6262
run: |
63-
gh auth login --with-token ${{ secrets.GITHUB_TOKEN }}
63+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
6464
gh pr create --base dev --head "automated-update-${{ env.TIMESTAMP }}" --title "Update translation progress from Crowdin - ${{ env.READABLE_DATE }}" --body-file pr_body.txt

.github/workflows/import-community-events.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ jobs:
5555
5656
- name: Create Pull Request
5757
run: |
58-
gh auth login --with-token ${{ secrets.GITHUB_TOKEN }}
58+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
5959
gh pr create --base dev --head "automated-update-${{ env.TIMESTAMP }}" --title "Update community events from external spreadsheet - ${{ env.READABLE_DATE }}" --body-file pr_body.txt

0 commit comments

Comments
 (0)