feat: use new mozilla http observatory data (#345) #285
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: [main, alpha, beta, next] | |
permissions: | |
id-token: write # Required for OIDC token generation | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get GitHub App Token | |
id: token | |
uses: SocialGouv/token-bureau@main | |
with: | |
token-bureau-url: https://token-bureau.fabrique.social.gouv.fr | |
audience: socialgouv | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "14.x" | |
- name: Semantic Release | |
id: semantic | |
uses: cycjimmy/semantic-release-action@v2 | |
with: | |
semantic_version: 17 | |
extra_plugins: | | |
@semantic-release/changelog@5.0.1 | |
@semantic-release/git@9.0.0 | |
env: | |
GIT_AUTHOR_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }} | |
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }} | |
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }} | |
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push updates to branch for major version | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: | | |
git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git :refs/tags/v${{steps.semantic.outputs.new_release_major_version}} | |
git tag -f v${{steps.semantic.outputs.new_release_major_version}} | |
git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git v${{steps.semantic.outputs.new_release_major_version}} | |
env: | |
GITHUB_TOKEN: ${{ steps.token.outputs.token }} | |