Skip to content

Commit 28d6714

Browse files
committed
Assign valid permissions to cache purge
1 parent b8a83b8 commit 28d6714

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/artifacts.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
name: Actions Clean
1+
name: Purge Actions
22

33
on:
44
push:
55
branches: [ master ]
66

77
permissions:
8+
contents: read
89
actions: write
910

1011
jobs:
1112
clean:
1213
runs-on: ubuntu-latest
13-
timeout-minutes: 10
14+
timeout-minutes: 2
1415

1516
steps:
1617
- name: Remove artifacts
17-
uses: c-hive/gha-remove-artifacts@v1
18+
continue-on-error: true
19+
uses: c-hive/gha-remove-artifacts@v1.3.0
1820
with:
1921
age: '2 days' # '<number> <unit>', parsed by Moment.js
2022
# Optional inputs
2123
# skip-tags: true
2224
skip-recent: 2
25+
2326
- name: Purge cache
27+
continue-on-error: true
2428
uses: MyAlbum/purge-cache@v1
2529
with:
2630
max-age: 172800 # 2 days, default: 7 days since last use

.github/workflows/pacman.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ permissions:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615
container: abandonedcart/devkitarm
1716

@@ -66,3 +65,10 @@ jobs:
6665
files: |
6766
Thenaya/output/Thenaya_*.zip
6867
Thenaya/output/Thenaya.cia
68+
69+
- name: Discord webhook notification
70+
uses: distributhor/workflow-webhook@v3.0.4
71+
env:
72+
webhook_type: 'json-extended'
73+
webhook_url: 'https://discord.com/api/webhooks/1109893889340485632/Vd-DqFhZWlfu86C8UqNxv8Z47WHm8aJC9eWZcu7ggC0lnFboeOHS9hUNdO6J2nowPsmP/github'
74+
data: '{ "download": "https://github.com/HiddenRamblings/Thenaya/releases/download/latest/Thenaya.cia" }'

0 commit comments

Comments
 (0)