Skip to content

Commit

Permalink
Use 'github.event.release.tag_name' instead of github.ref (#1904)
Browse files Browse the repository at this point in the history
Works around actions/runner#2788
  • Loading branch information
floitsch authored Oct 11, 2023
1 parent 7bcc4c2 commit 7e45a11
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/firmware-esp32.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Upload ESP32-C3 release firmware artifacts
Expand All @@ -519,7 +519,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/firmware-esp32c3.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Upload ESP32-S2 release firmware artifacts
Expand All @@ -530,7 +530,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/firmware-esp32s2.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Upload ESP32-S3 release firmware artifacts
Expand All @@ -541,7 +541,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/firmware-esp32s3.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

# Really annoying that we need to duplicate so much.
Expand Down Expand Up @@ -798,7 +798,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: vessels.tar.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Upload release Linux
Expand All @@ -809,7 +809,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: toit-linux.tar.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Upload release macOS
Expand All @@ -820,7 +820,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: toit-macos.tar.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Upload release Raspberry Pi 32-bit
Expand All @@ -831,7 +831,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: toit-rpi.tar.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Upload release aarch64
Expand All @@ -842,7 +842,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: toit-aarch64.tar.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

sign_windows:
Expand Down Expand Up @@ -901,7 +901,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: toit-windows.tar.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Upload release installer
Expand All @@ -910,7 +910,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: toit-windows-x64-installer.exe
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true

external-and-flaky:
Expand Down

0 comments on commit 7e45a11

Please sign in to comment.