Skip to content

Commit 04e3f76

Browse files
authored
Move checkout out of composite action
1 parent 76ba074 commit 04e3f76

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

.github/actions/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ runs:
99
name: Build Website
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
with:
14-
fetch-depth: 1
1512
- uses: actions/setup-node@v4
1613
with:
1714
node-version: '18'

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@ permissions:
1212
pages: write
1313
id-token: write
1414

15-
concurrency:
16-
group: ${{ github.sha }}
17-
cancel-in-progress: true
18-
1915
jobs:
2016
deploy:
17+
concurrency:
18+
group: ${{ github.sha }}
2119
environment:
2220
name: github-pages
2321
url: ${{ steps.deployment.outputs.page_url }}
2422
name: Build Website
2523
runs-on: ubuntu-latest
2624
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 1
2729
- name: Build
2830
uses: ./.github/actions/build

.github/workflows/tag.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ on:
1515
description: 'tag name'
1616
required: true
1717
run-name: ${{ github.event.inputs.repo }}
18+
19+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
20+
permissions:
21+
contents: read
22+
pages: write
23+
id-token: write
24+
1825
jobs:
1926
update_tag:
2027
runs-on: ubuntu-latest
@@ -39,5 +46,19 @@ jobs:
3946
git remote add origin "https://${{ secrets.GRAPHQL_TOKEN }}@github.com/${{ github.event.inputs.repo }}.git"
4047
git push origin "$VERCODE-$VERNAME" -f
4148
curl -X PATCH -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.GRAPHQL_TOKEN }}" https://api.github.com/repos/Xposed-Modules-Repo/${{ github.event.inputs.repo }}/releases/${{ github.event.inputs.release }} -d "{\"tag_name\":\"${VERCODE}-${VERNAME}\"}"
49+
50+
deploy:
51+
concurrency:
52+
group: ${{ github.sha }}
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
name: Build Website
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v4
61+
with:
62+
fetch-depth: 1
4263
- name: Build
4364
uses: ./.github/actions/build

0 commit comments

Comments
 (0)