Skip to content

Commit

Permalink
chore: Update prerelease actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jan 8, 2025
1 parent fba5dba commit 24fd7e2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ updates:

# Automatically added by streetsidesoftware/public/update-dependabot-github-actions
- package-ecosystem: github-actions
directory: /.github/actions/vsce-args
directory: /.github/actions/is-prerelease
schedule:
interval: daily
commit-message:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-mark-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:
with:
ref: ${{ env.REF }}

- name: VSCE Args
id: vsce-args
uses: ./.github/actions/vsce-args
- name: Get Mode
id: prerelease-mode
uses: ./.github/actions/is-prerelease

- name: Mark Prerelease
if: ${{ steps.vsce-args.outputs.prerelease == 'true' }}
if: ${{ steps.prerelease-mode.outputs.prerelease == 'true' }}
env:
GH_TOKEN: ${{ github.token }}
run: gh release edit ${{ env.REF }} --prerelease
14 changes: 10 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,15 @@ jobs:
return found[0]?.number || '';
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get Mode
id: prerelease-mode
uses: ./.github/actions/is-prerelease

- name: Label PR
if: ${{ steps.find-pr.outputs.result }}
uses: ./.github/actions/label-pr
with:
label: task
pr: ${{ steps.find-pr.outputs.result }}
env:
LABEL_ADD: ${{ steps.prerelease-mode.outputs.prerelease == 'true' && 'Prerelease' || 'Release' }}
LABEL_REMOVE: ${{ steps.prerelease-mode.outputs.prerelease == 'true' && 'Release' || 'Prerelease' }}
run: |
gh pr edit ${{ steps.find-pr.outputs.result }} --add-label "$LABEL_ADD" --remove-label "$LABEL_REMOVE"
10 changes: 5 additions & 5 deletions .github/workflows/set-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:

- run: node ./scripts/set-prerelease-mode.js ${{ inputs.prerelease }}

- name: Check Args
id: check-args
uses: ./.github/actions/vsce-args
- name: Get Mode
id: prerelease-mode
uses: ./.github/actions/is-prerelease

- name: Show Args
uses: streetsidesoftware/actions/public/summary@v1
with:
text: |
# VSCE Args
# Prerelease Mode
```
${{ toJSON(steps.check-args.outputs) }}
${{ toJSON(steps.prerelease-mode.outputs) }}
```
- name: PR
Expand Down

0 comments on commit 24fd7e2

Please sign in to comment.