Skip to content

Commit 7963a43

Browse files
committed
ci: add GitHub Actions workflow for snapshot tag
Assisted-by: Claude Sonnet 4 (Dinootoo) Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent 7bef685 commit 7963a43

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

.github/DEVELOP.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ Workflows are the following:
483483
- [build-documentation](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/build-documentation.yml) to ensure documentation can be built from sources without warnings
484484
- [dependency-review](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/dependency-review.yml) to scan dependency manifest files surfacing known-vulnerable versions of the packages declared or updated in pull requests
485485
- [gitleaks](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/gitleaks.yml) to check if there are secrets leaks
486-
- [scorecard](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/scorecard.yml) to buold the OpenSSF score card on README
486+
- [scorecard](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/scorecard.yml) to build the OpenSSF score card on README
487+
- [snapshot](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/sapshot.yml) to move the SNAPSHOT tag to the last commit on develop branch
487488
- [swiftlint](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/swiftlint.yml) to check if there is no linter warnings
488489
- [swiftpolyglot](https://github.com/Orange-OpenSource/ouds-ios/blob/develop/.github/workflows/swiftpolyglot.yml) to check if there are localizations troubles
489490

.github/workflows/snapshot.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Software Name: Orange Unified Design System
3+
# SPDX-FileCopyrightText: Copyright (c) Orange SA
4+
# SPDX-License-Identifier: MIT
5+
#
6+
# This software is distributed under the MIT license,
7+
# the text of which is available at https://opensource.org/license/MIT/
8+
# or see the "LICENSE" file for more details.
9+
#
10+
# Authors: See CONTRIBUTORS.txt
11+
# Software description: A SwiftUI components library with code examples for Orange Unified Design System
12+
#
13+
14+
# About runners: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners
15+
# Runners details: https://github.com/actions/runner-images/
16+
17+
# Each night, at 8:00 pm Paris hour (i.e. 18h UTC)
18+
# moves the SNAPSHOT tag
19+
# to let CI/CD or users pick the last development version by tag
20+
21+
name: Update SNAPSHOT Tag
22+
23+
on:
24+
schedule:
25+
- cron: '0 18 * * *' # 20h Paris
26+
workflow_dispatch:
27+
28+
permissions:
29+
contents: write
30+
31+
jobs:
32+
snapshot:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
ref: develop
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- run: |
41+
git config user.name "github-actions[bot]"
42+
git config user.email "github-actions[bot]@users.noreply.github.com"
43+
git tag -f SNAPSHOT
44+
git push origin SNAPSHOT --force

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- GitHub Actions workflow ot move the SNAPSHOT tag
1112
- Display in standard ouput information message about tokens libraries versions in use
1213
- Support for `visionOS` (Orange-OpenSource/ouds-ios#1102)
1314
- Support for `macOS` (Orange-OpenSource/ouds-ios#1102)

0 commit comments

Comments
 (0)