Skip to content

Commit 20b2a28

Browse files
chore(deps): update dependency https://github.com/salt-extensions/salt-extension-copier to v0.9.0
1 parent f900c48 commit 20b2a28

19 files changed

+572
-368
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Autogenerated. Do not edit this by hand, use `copier update`.
22
---
3-
_commit: 0.8.0
3+
_commit: 0.9.0
44
_src_path: https://github.com/salt-extensions/salt-extension-copier
55
author: Cesar Sanchez
66
author_email: cesan3@gmail.com
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: upload-exitstatus
3+
description: Upload a job's status as an artifact
4+
inputs:
5+
artifact_prefix:
6+
required: false
7+
default: exitstatus-
8+
name:
9+
required: false
10+
default: ''
11+
12+
runs:
13+
using: composite
14+
15+
steps:
16+
17+
- name: Set Exit Status
18+
if: always()
19+
env:
20+
OUTFILE: exitstatus/${{ inputs.name == '' && github.job || inputs.name }}
21+
shell: bash
22+
run: |
23+
mkdir exitstatus
24+
echo "${{ job.status }}" > "$OUTFILE"
25+
26+
- name: Upload Exit Status
27+
if: always()
28+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
29+
with:
30+
name: ${{ inputs.artifact_prefix }}${{ inputs.name == '' && github.job || inputs.name }}
31+
path: exitstatus
32+
if-no-files-found: error

.github/workflows/ci.yml

Lines changed: 13 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,24 @@ name: CI
33

44
on:
55
workflow_call:
6-
inputs:
7-
deploy-docs:
8-
required: false
9-
type: boolean
10-
default: false
11-
release:
12-
required: false
13-
type: boolean
14-
default: false
15-
version:
16-
required: false
17-
type: string
18-
secrets:
19-
PYPI_API_TOKEN:
20-
required: false
21-
TEST_PYPI_API_TOKEN:
22-
required: false
23-
246

257
jobs:
268
get-changed-files:
279
name: Get Changed Files
2810
uses: ./.github/workflows/get-changed-files.yml
11+
permissions:
12+
contents: read
13+
pull-requests: read # for dorny/paths-filter to read pull requests
2914

3015
pre-commit:
3116
name: Pre-Commit
32-
uses: ./.github/workflows/pre-commit-action.yml
3317
needs:
3418
- get-changed-files
19+
uses: ./.github/workflows/pre-commit-action.yml
3520
with:
3621
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}
22+
permissions:
23+
contents: read
3724

3825
test:
3926
name: Test
@@ -46,65 +33,14 @@ jobs:
4633
needs:
4734
- pre-commit
4835
uses: ./.github/workflows/docs-action.yml
49-
50-
check-prepare-release:
51-
name: Check if we can prepare release PR
52-
if: >-
53-
github.event_name == 'push' &&
54-
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
55-
needs:
56-
- docs
57-
- test
58-
runs-on: ubuntu-24.04
59-
outputs:
60-
news-fragments-available: ${{ steps.check-available.outputs.available }}
61-
62-
steps:
63-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
64-
65-
- name: Check if news fragments are available
66-
id: check-available
67-
run: |
68-
if [ -n "$(find changelog -type f -not -name '.*' -print -quit)" ]; then
69-
echo "available=1" >> "$GITHUB_OUTPUT"
70-
else
71-
echo "available=0" >> "$GITHUB_OUTPUT"
72-
fi
73-
74-
prepare-release:
75-
name: Prepare Release PR
76-
if: ${{ needs.check-prepare-release.outputs.news-fragments-available == '1' }}
77-
needs:
78-
- check-prepare-release
79-
- docs
80-
- test
8136
permissions:
82-
contents: write
83-
pull-requests: write
84-
uses: ./.github/workflows/prepare-release-action.yml
85-
86-
deploy-docs:
87-
name: Deploy Docs
88-
uses: ./.github/workflows/deploy-docs-action.yml
89-
# Only build doc deployments from the default branch of the repo and never for PRs,
90-
# unless the triggering event was the release PR being merged.
91-
if: >-
92-
inputs.deploy-docs &&
93-
(
94-
github.event_name != 'pull_request' ||
95-
inputs.release
96-
) &&
97-
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
98-
needs:
99-
- docs
100-
- test
37+
contents: read
10138

10239
build-python-package:
10340
name: Python Package
104-
if: ${{ inputs.release && success() }}
105-
uses: ./.github/workflows/package-action.yml
10641
needs:
10742
- pre-commit
43+
<<<<<<< before updating
10844
with:
10945
version: "${{ inputs.version }}"
11046

@@ -174,3 +110,8 @@ jobs:
174110
if: always()
175111
run:
176112
echo "All workflows finished"
113+
=======
114+
uses: ./.github/workflows/package-action.yml
115+
permissions:
116+
contents: read
117+
>>>>>>> after updating

.github/workflows/deploy-docs-action.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ on:
1111
required: false
1212
default: html-docs
1313

14+
15+
permissions:
16+
actions: read # For downloading artifacts of other runs when called via workflow_run trigger
17+
pages: write
18+
id-token: write
19+
1420
jobs:
1521

1622
# The released docs are not versioned currently, only the latest ones are deployed.
@@ -31,18 +37,17 @@ jobs:
3137
name: github-pages
3238
url: ${{ steps.deployment.outputs.page_url }}
3339

34-
permissions:
35-
pages: write
36-
id-token: write
37-
3840
runs-on: ubuntu-24.04
3941

4042
steps:
43+
4144
- name: Download built docs
42-
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
45+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
4346
with:
4447
name: ${{ inputs.artifact-name }}
4548
path: html-docs
49+
github-token: ${{ github.token }}
50+
run-id: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.id || github.run_id }}
4651

4752
- name: Upload GitHub Pages artifact
4853
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
@@ -64,16 +69,8 @@ jobs:
6469
name: html-docs-pages
6570
failOnError: false
6671

67-
- name: Set Exit Status
68-
if: always()
69-
run: |
70-
mkdir exitstatus
71-
echo "${{ job.status }}" > exitstatus/${{ github.job }}
72+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7273

7374
- name: Upload Exit Status
7475
if: always()
75-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
76-
with:
77-
name: exitstatus-${{ github.job }}
78-
path: exitstatus
79-
if-no-files-found: error
76+
uses: ./.github/actions/upload-exitstatus

0 commit comments

Comments
 (0)